Articles in this section
Category / Section

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

1 min read

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.

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied