ShapeGeometry::GetSelectionLineWidth Method (DiagramClientView^)

 

Gets the width of the line that indicates that a shape is selected.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
double GetSelectionLineWidth(
	DiagramClientView^ view
)

Return Value

Type: System::Double

The width of the selection.

For a zoomed-out view, the thickness of the line is increased so that it is always the same size on the screen.


public double GetSelectionLineWidth(DiagramClientView view)
{
   // Line is always 1/96 screen inches wide.
   return (1.0 / 96.0) / (double)view.ZoomFactor;
}

Return to top
Show: