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

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.
Live Chat Icon For mobile
Up arrow icon