Nevron Forum

Change node/shape selection color

https://www.nevron.com/Forum/Topic6702.aspx

By Miguel Sevilla - Wednesday, July 18, 2012

Hi there, so we want to change the shape selection (highlight) color from Red to something else since we use Red to denote something else. Is there an easy way to do this? if so, a sample would be great. We are using the shape factories to create the various shapes and lines.

thanks for your help,

Miguel
By Nevron Support - Wednesday, July 18, 2012

Hi,

To change the way the shapes look when selected you should modify the interactivity appearance of the drawing view. Here's an example that changes the stroke style of shapes when selected to green:

view.InteractiveAppearance.SelectedStrokeStyle = new NStrokeStyle(Color.Green);
By Miguel Sevilla - Thursday, July 19, 2012

Awesome, that worked great. Thanks for the prompt response.