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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Déclaration
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
- view
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramClientView
The view.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.