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
bufferSpan
Type: Microsoft.VisualStudio.Text.SnapshotSpanThe span of text.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.