Bagikan melalui


ShapeGeometry.GetSelectionBorderThickness Method (Graphics)

Gets the width of the border for a selection in the current view.

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

Syntax

'Declaration
Public Shared Function GetSelectionBorderThickness ( _
    graphics As Graphics _
) As SizeD
public static SizeD GetSelectionBorderThickness(
    Graphics graphics
)
public:
static SizeD GetSelectionBorderThickness(
    Graphics^ graphics
)
static member GetSelectionBorderThickness : 
        graphics:Graphics -> SizeD
public static function GetSelectionBorderThickness(
    graphics : Graphics
) : SizeD

Parameters

  • graphics
    Type: Graphics

    The graphics which are in the selection.

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.SizeD
The width of the border for a selection in the current view.

Remarks

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

.NET Framework Security

See Also

Reference

ShapeGeometry Class

GetSelectionBorderThickness Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace