次の方法で共有


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

'宣言
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: System.Boolean
    If true, the created geometry will be clipped to the viewport.

Return Value

Type: System.Windows.Media.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