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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Loop through controls in a diagram

Thread ID:





126221 Oct 2,2016 07:16 AM UTC Oct 3,2016 06:01 AM UTC WinForms 2
Tags: Diagram
Asked On October 2, 2016 07:16 AM UTC

I tried to loop on all controls (RoundRect) in a diagram, but it seems the controls are in a 'Protected view', my code is as follows, any suggestion? Thank you in advance - Nicolas

For Each rect As RoundRect In Diagram1.Model.Children.Members

rect.LineStyle.LineColor = OC_BorderColor.SelectedColor


Replied On October 2, 2016 09:13 PM UTC

ok got it resolved! - Nicolas

For i = 0 To Diagram1.LayoutManager.Nodes.Members.Count

If Diagram1.LayoutManager.Nodes.Members(i).GetType Is GetType(RoundRect) Then

'do something here

end if


Naganathan Ganesh Babu [Syncfusion]
Replied On October 3, 2016 06:01 AM UTC

Hi Nicolas, 
Thanks for letting us know that issue got resolved. Please reach us if you need any further assistance. 
Naganathan K G 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon