Nevron Forum

NPolygonShape points

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

By Igor Yakubov - Monday, September 14, 2009

Hi,
How can i show the points of NPolygonShape (the points that constracts the polygon) for example in the InteractivityStyle, and it will have the ability to be change this points in DiagramView (like bounds)?

Thanks!

By Ivo Milanov - Tuesday, September 15, 2009

Hi Igor,

Each shape has an interaction style associated with it which specifies the aspects of the shape for which trackers (interactive editors with handlers) are created when the shape is selected. A polygon shape is a 2D shape, which by default shows only the rotated bounds, pin and rotation trackers. To show the points use this code:

NInteractionStyle istyle = shape.InteractionStyle;

istyle.GeometryPoints = true;

shape.InteractionStyle = istyle;

Best regards,
Ivo