ITextViewLineCollection::GetCharacterBounds Method (SnapshotPoint)
Visual Studio 2015
Gets the text bounds of the specified text buffer position.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Parameters
- bufferPosition
-
Type:
Microsoft.VisualStudio.Text::SnapshotPoint
The text buffer-based index of the character.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting::TextBoundsA rectangular TextBounds structure.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | bufferPosition does not correspond to a position on this line. |
Show: