how to find a control in diagram view

hi


how can i find a shap or connector ID in diagram view?


please help


1 Reply

MA Maria Amal Raj T Syncfusion Team March 3, 2011 10:08 AM UTC

Hi,

Thanks for your interest on Syncfusion Products.

Nodes and Connection are added using Nodes and Connections collection from DiagramModel, Each Node and LineConnector has a property named ‘ID’. DiagramModel can be referred through DiagramControl’s Model property.

To identify a particular Node or Connection using ID, please use the following code snippet.

foreach(Node n in diagramModel.Nodes)
{
If(n.ID == nodeId)
{

}
}

Please let us know if you have any further queries.

Regards,
Maria Amal Raj T,
Diagram WPF & Silverlight Team,
Syncfusion - Chennai.


Loader.
Up arrow icon