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.
Unfortunately, activation email could not send to your email. Please try again.

Loop through controls in a diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

126221 Oct 2,2016 03:16 AM Oct 3,2016 02:01 AM Windows Forms 2
loading
Tags: Diagram
Nicolas
Asked On October 2, 2016 03:16 AM

Hi,
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

Next


Nicolas
Replied On October 2, 2016 05:13 PM

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

Next


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

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


CONFIRMATION

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.

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.

;