We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Doesn''t insert nodes

Hi,

I'm drawing a series of nodes with the following code:

for (int i = 0; i < LogicNodes.Count; i++)
AppendNodeToDocument(LogicNodes[i]);
--------------------------------------------------
private void AppendNodeToDocument(WorkFlowNode myLogicNode)
{
RectangleF rectangule = new RectangleF(dxNode.Rectangules.Location.X, dxNode.Rectangules.Location.Y, 220, alto);

RichTextNode myGraphicNode = new RichTextNode("", rectangule);
myGraphicNode.Name = Name;
myGraphicNode.EnableCentralPort = true;
dwfDiagrama.Model.AppendChild(myGraphicNode);
}

but to add the node to node graph

dwfDiagrama.Model.AppendChild(myGraphicNode);

is not inserted, and does not run any error



3 Replies

PM Pandi Murugan A Syncfusion Team December 1, 2010 08:43 AM UTC

Hi Edward,

Thanks for using Syncfusion products.

The Diagram Node has a property called 'PinPoint' to position it on the diagram. We suggest you to use this property to positioning your nodes on the diagram. Please refer the below code snippet.

[C#]
RectangleF rect = new RectangleF(0, 0, 100, 100);
RichTextNode rtxNode = new RichTextNode("",rect);
rtxNode.Text = "My RichTextNode";
//Position the Node
rtxNode.PinPoint = new PointF(200, 200);
diagram1.Model.AppendChild(rtxNode);


Please let me know if you have any concerns.

Regards,
Pandi Murugan A






ED Edward December 1, 2010 03:47 PM UTC

Hi Pandi,

I forgot to mention that only happens with some nodes of the series. I made the changes you suggested but the error persists.

I hope you can help me, thanks



PM Pandi Murugan A Syncfusion Team December 2, 2010 07:40 AM UTC

Hi Edward,

Thanks for your update.

Could you please provide us the error details which you had which will be of more helpful for us to investigate further on this and provide a better solution to you?

Please let me know if you have any concerns.

Regards,
Pandi Murugan A


Loader.
Live Chat Icon For mobile
Up arrow icon