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

Changing a symbol's property does not apply it to the symbol's child nodes

Platform: WinForms |
Control: Diagram

Changing a symbol's property does not apply it to the symbol's child nodes

Changing a Symbol's FillStyle property value such as the FillStyle.Color will propagate that property down through the symbol''s child nodes collection and will apply that particular property to all child nodes that support it. For example, in the case of a symbol composed of an outer Rectangle and an inner Ellipse shape, setting the Symbol.FillStyle.Color to Black will result in the property being applied to both the Rectangle and the Ellipse child nodes, thus giving the Symbol the resultant FillStyle color.

This property propagation mechanism will however work only if the symbol''s child nodes retain the default value for that particular property, and do not have an overriding assignment. If the child node''s FillStyle.Color property has been set to something other than the default, then that child node will retain its assigned property value, and will ignore the parent symbol''s fill style when it draws itself.

And so symbol's child nodes should retain their default property values for those attributes that you intend to change at the symbol level. If you want to change a non-default value for one of the symbol''s child nodes, then you will have to do this by directly the child node and applying the new property value directly to it.

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile