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

Change node border as highlight when selected ?

How to change node border as highlight when selected ?

1 Reply

AD Administrator Syncfusion Team January 12, 2005 05:22 PM UTC

Suwit, If you want to change selection aspects for specific symbols in response to runtime events, then you would have to use the Symbol subclassing approach demonstrated in the CustomSymbol sample. You will first create an assembly containing the class defintion for a Symbol type that implements the required behavior and then specify this class/assembly as the PlugIn class and assembly for the symbol while designing it in the SymbolDesigner. You can also refer to the DynamicSymbol sample for hints on changing symbol attributes based on user events. On the other hand if your intention is to change the way diagram draws it''s selection indicators as a whole, then you can do so by subclassing the Diagram.View component and providing suitable overrides for the View.DrawSelectOutline(System.Drawing.Graphics grfx, INode node, bool isAnchor) and View.DrawSelectionHandles(System.Drawing.Graphics grfx) methods. Referring to the base implementation in the Diagram\Src\Object Hierarchy\View.cs file should help you get started with this. Regards, Prakash

Loader.
Live Chat Icon For mobile
Up arrow icon