ITextViewLine.GetNormalizedTextBounds Method
Gets a collection of TextBounds structures for the text that corresponds to the given span.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Dichiarazione
Function GetNormalizedTextBounds ( _
bufferSpan As SnapshotSpan _
) As Collection(Of TextBounds)
Collection<TextBounds> GetNormalizedTextBounds(
SnapshotSpan bufferSpan
)
Collection<TextBounds>^ GetNormalizedTextBounds(
SnapshotSpan bufferSpan
)
abstract GetNormalizedTextBounds :
bufferSpan:SnapshotSpan -> Collection<TextBounds>
function GetNormalizedTextBounds(
bufferSpan : SnapshotSpan
) : Collection<TextBounds>
Parameters
- bufferSpan
Type: Microsoft.VisualStudio.Text.SnapshotSpan
The SnapshotSpan representing the text for which to compute the text bounds.
Return Value
Type: System.Collections.ObjectModel.Collection<TextBounds>
A collection of TextBounds structures that contain the text specified in bufferSpan.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | bufferSpan is not a legal span in the underlying text buffer. |
Remarks
If the line contains bidirectional text, the TextBounds structures that are returned may be disjoint. The height and top of the bounds will correspond to the top and bottom of this ITextViewLine.
.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.