how to change the appearance of the bounds rectangle when a shape is selected


https://www.nevron.com/Forum/Topic12234.aspx
Print Topic | Close Window

By Adam Leffert - 7 Years Ago
I read all the doc and Q&A I could find, but can not figure out how to change the appearance of the green, dashed rectangle that appears when the user selects a shape in a WinForms diagram.

View > InteractiveAppearance > SelectedStrokeStyle
changes the appearance of the shape itself, not the bounding box.

Shape > InteractionStyle > Bounds = false
hide the bounding box but I want to change its stroke and color, not hide it

Which object properties do I change to change the appearance of the selected shapes bounding box?

Thanks very much in advance,

Adam Leffert

By Nevron Support - 7 Years Ago
Hi,

You should change the value of drawingView.TrackersAppearance.RubberBandStrokeStyle property.
By Adam Leffert - 7 Years Ago
Works great.  Thanks!

I spent quite a few hours working on this question, because I'm a firm believer in RTFM.
I abandoned the "tracker" properties because they seemed to be the 8 shapes that appear when I select a shape.
A Google search for
nevron diagram selected shape style

does not return any results that lead to the answer.
I realize that search visibility is difficult.  I understand that "RubberBandStrokeStyle" is its name, but no way for me to know that if I didn't know that the thing I was seeing is a static rubber band.  I clicked the shape once to select it, so I wasn't thinking "rubber band".  If I had dragged to select it, I might have associated that concept with the style.

Anyhow, the answer is in the Forum now. Smile

Best regards,

Adam
By Adam Leffert - 7 Years Ago
Works great. Thanks!

I spent quite a few hours working on this question, because I'm a firm believer in RTFM.
I abandoned the "tracker" properties because they seemed to be the 8 shapes that appear when I select a shape.
A Google search for
nevron diagram selected shape style

does not return any results that lead to the answer.
I realize that search visibility is difficult. I understand that "RubberBandStrokeStyle" is its name, but no way for me to know that if I didn't know that the thing I was seeing is a static rubber band. I clicked the shape once to select it, so I wasn't thinking "rubber band". If I had dragged to select it, I might have associated that concept with the style.

Anyhow, the answer is in the Forum now. Smile

Best regards,

Adam