IWpfTextViewLineCollection::GetMarkerGeometry Method (SnapshotSpan)
Visual Studio 2015
Creates a marker geometry for the specified snapshot span.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
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.
Show: