Share via


ShapeGeometry.GetSelectionLineWidth Method

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)

Syntax

'Declaration
Public Function GetSelectionLineWidth ( _
    view As DiagramClientView _
) As Double
public double GetSelectionLineWidth(
    DiagramClientView view
)
public:
double GetSelectionLineWidth(
    DiagramClientView^ view
)
member GetSelectionLineWidth : 
        view:DiagramClientView -> float
public function GetSelectionLineWidth(
    view : DiagramClientView
) : double

Parameters

Return Value

Type: System.Double
The width of the selection.

Remarks

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

Examples

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

.NET Framework Security

See Also

Reference

ShapeGeometry Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace