ShapeGeometry::GetSelectionLineWidth Method (DiagramClientView^)
Visual Studio 2015
Gets the width of the line that indicates that a shape is selected.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Parameters
- view
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::DiagramClientView^
The view.
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;
}
Show: