IWpfTextViewLineCollection.GetMarkerGeometry Method (SnapshotSpan, Boolean, Thickness)
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
'Déclaration
Function GetMarkerGeometry ( _
bufferSpan As SnapshotSpan, _
clipToViewport As Boolean, _
padding As Thickness _
) As Geometry
Geometry GetMarkerGeometry(
SnapshotSpan bufferSpan,
bool clipToViewport,
Thickness padding
)
Geometry^ GetMarkerGeometry(
SnapshotSpan bufferSpan,
bool clipToViewport,
Thickness padding
)
abstract GetMarkerGeometry :
bufferSpan:SnapshotSpan *
clipToViewport:bool *
padding:Thickness -> Geometry
function GetMarkerGeometry(
bufferSpan : SnapshotSpan,
clipToViewport : boolean,
padding : Thickness
) : Geometry
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.
Remarks
If the span extends beyond one line, then GetLineMarkerGeometry is used to calculate the marker geometry, otherwise this method uses GetTextMarkerGeometry.
.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.