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)

Geometry^ GetMarkerGeometry(
	SnapshotSpan bufferSpan
)

Parameters

bufferSpan
Type: Microsoft.VisualStudio.Text::SnapshotSpan

The span of text.

Return Value

Type: System.Windows.Media::Geometry^

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

Exception Condition
ArgumentOutOfRangeException

bufferSpan is not a valid SnapshotSpan on the buffer.

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.

Return to top
Show: