ITextViewLineCollection::GetNormalizedTextBounds Method (SnapshotSpan)

 

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)

Collection<TextBounds>^ GetNormalizedTextBounds(
	SnapshotSpan bufferSpan
)

Parameters

bufferSpan
Type: Microsoft.VisualStudio.Text::SnapshotSpan

The buffer span representing the text for which to compute the text bounds.

Return Value

Type: System.Collections.ObjectModel::Collection<TextBounds>^

A read-only collection of TextBounds structures that contain the text specified in bufferSpan.

Exception Condition
ArgumentOutOfRangeException

bufferSpan is not a legal span in the underlying text buffer.

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.

Return to top
Show: