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

Nested Shapes

Can we position a rectangle inside another rectangle and moving the outer rectangle will move all its contained rectangle/other shapes? Can we use grouping approach for this? at the same time when we resize the parent it should not resize it children shapes

1 Reply

AD Administrator Syncfusion Team June 13, 2006 05:56 AM UTC

Hi Gokul, You can create any number of Symbols as per your requirement by sub classing the Symbol class and adding your custom versions. If your intention is to,not allow the child nodes being resized when you resize the parent Symbol node, then, the way to go with this would be by using the GetChildByName() method, which will return the childnode matching the given name and update its properties with your requirements .Similarly, you can group the symbol nodes and update the properties of the child nodes as well. I have created a Sample implementing these features, please look into it and let me know if this helps you. Regards, Praveena.

CustomSymbols.zip

Loader.
Live Chat Icon For mobile
Up arrow icon