Share via


ITextViewLineCollection.GetCharacterBounds Method

Gets the text bounds of the specified text buffer position.

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

Syntax

'Declaration
Function GetCharacterBounds ( _
    bufferPosition As SnapshotPoint _
) As TextBounds
TextBounds GetCharacterBounds(
    SnapshotPoint bufferPosition
)
TextBounds GetCharacterBounds(
    SnapshotPoint bufferPosition
)
abstract GetCharacterBounds : 
        bufferPosition:SnapshotPoint -> TextBounds 
function GetCharacterBounds(
    bufferPosition : SnapshotPoint
) : TextBounds

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Formatting.TextBounds
A rectangular TextBounds structure.

Exceptions

Exception Condition
ArgumentOutOfRangeException

bufferPosition does not correspond to a position on this line.

.NET Framework Security

See Also

Reference

ITextViewLineCollection Interface

Microsoft.VisualStudio.Text.Editor Namespace