다음을 통해 공유


IWpfTextViewLineCollection.GetMarkerGeometry Method (SnapshotSpan, Boolean, Thickness)

Creates a marker geometry for the specified snapshot span.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Function GetMarkerGeometry ( _
    bufferSpan As SnapshotSpan, _
    clipToViewport As Boolean, _
    padding As Thickness _
) As Geometry
Geometry GetMarkerGeometry(
    SnapshotSpan bufferSpan,
    bool clipToViewport,
    Thickness padding
)
Geometry^ GetMarkerGeometry(
    SnapshotSpan bufferSpan, 
    bool clipToViewport, 
    Thickness padding
)
abstract GetMarkerGeometry : 
        bufferSpan:SnapshotSpan * 
        clipToViewport:bool * 
        padding:Thickness -> Geometry
function GetMarkerGeometry(
    bufferSpan : SnapshotSpan, 
    clipToViewport : boolean, 
    padding : Thickness
) : Geometry

Parameters

  • clipToViewport
    Type: Boolean

    If true, the created geometry will be clipped to the viewport.

  • padding
    Type: Thickness

    A padding that's applied to the elements on a per line basis.

Return Value

Type: Geometry
A Geometry that contains the bounds of all of the formatted text in bufferSpan.

Remarks

If the span extends beyond one line, then GetLineMarkerGeometry is used to calculate the marker geometry, otherwise this method uses GetTextMarkerGeometry.

.NET Framework Security

See Also

Reference

IWpfTextViewLineCollection Interface

GetMarkerGeometry Overload

Microsoft.VisualStudio.Text.Editor Namespace