다음을 통해 공유


IWpfTextViewLineCollection.GetMarkerGeometry Method (SnapshotSpan)

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 _
) As Geometry
Geometry GetMarkerGeometry(
    SnapshotSpan bufferSpan
)
Geometry^ GetMarkerGeometry(
    SnapshotSpan bufferSpan
)
abstract GetMarkerGeometry : 
        bufferSpan:SnapshotSpan -> Geometry
function GetMarkerGeometry(
    bufferSpan : SnapshotSpan
) : Geometry

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentOutOfRangeException

bufferSpan is not a valid SnapshotSpan on the buffer.

Remarks

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

The returned geometry may contain several disjoint regions if the span contains a mix of conventional and bi-directional text.

.NET Framework Security

See Also

Reference

IWpfTextViewLineCollection Interface

GetMarkerGeometry Overload

Microsoft.VisualStudio.Text.Editor Namespace