IWpfTextViewLineCollection::GetMarkerGeometry Method (SnapshotSpan, Boolean, Thickness)
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)
Geometry^ GetMarkerGeometry(
SnapshotSpan bufferSpan,
bool clipToViewport,
Thickness padding
)
Parameters
- bufferSpan
-
Type:
Microsoft.VisualStudio.Text::SnapshotSpan
The span of text.
- clipToViewport
-
Type:
System::Boolean
If true, the created geometry will be clipped to the viewport.
- padding
-
Type:
System.Windows::Thickness
A padding that's applied to the elements on a per line basis.
Return Value
Type: System.Windows.Media::Geometry^A Geometry that contains the bounds of all of the formatted text in bufferSpan.
If the span extends beyond one line, then GetLineMarkerGeometry is used to calculate the marker geometry, otherwise this method uses GetTextMarkerGeometry.
Show: