Delen via


ITextViewLineCollection.GetNormalizedTextBounds Method

Gets a collection of TextBounds structures for the text that corresponds to the given span.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
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

Return Value

Type: Collection<TextBounds>
A read-only 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 objects that are returned may be disjoint.

The height and top of the bounds will be the maximum of the height and the minimum of the top of all text in the line.

.NET Framework Security

See Also

Reference

ITextViewLineCollection Interface

Microsoft.VisualStudio.Text.Editor Namespace