다음을 통해 공유


IWpfTextViewLine.GetCharacterFormatting Method

Gets the formatting for a particular character in the line.

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

Syntax

'Declaration
Function GetCharacterFormatting ( _
    bufferPosition As SnapshotPoint _
) As TextRunProperties
TextRunProperties GetCharacterFormatting(
    SnapshotPoint bufferPosition
)
TextRunProperties^ GetCharacterFormatting(
    SnapshotPoint bufferPosition
)
abstract GetCharacterFormatting : 
        bufferPosition:SnapshotPoint -> TextRunProperties
function GetCharacterFormatting(
    bufferPosition : SnapshotPoint
) : TextRunProperties

Parameters

Return Value

Type: TextRunProperties
The TextRunProperties used to format that character.

Exceptions

Exception Condition
ObjectDisposedException

this IWpfTextViewLine has been disposed.

ArgumentOutOfRangeException

bufferPosition does not correspond to a position on this line.

.NET Framework Security

See Also

Reference

IWpfTextViewLine Interface

Microsoft.VisualStudio.Text.Formatting Namespace