共用方式為


ShapeGeometry.GetSelectionLineOffset Method

Gets the distance between the selection and the outside of the shape geometry.

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

Syntax

'宣告
Public Overridable Function GetSelectionLineOffset ( _
    view As DiagramClientView _
) As Double
public virtual double GetSelectionLineOffset(
    DiagramClientView view
)
public:
virtual double GetSelectionLineOffset(
    DiagramClientView^ view
)
abstract GetSelectionLineOffset : 
        view:DiagramClientView -> float 
override GetSelectionLineOffset : 
        view:DiagramClientView -> float 
public function GetSelectionLineOffset(
    view : DiagramClientView
) : double

Parameters

Return Value

Type: System.Double
The distance between the selection border and the outside of the shape geometry.

Remarks

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

.NET Framework Security

See Also

Reference

ShapeGeometry Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace