Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- bufferPosition
 Type: Microsoft.VisualStudio.Text.SnapshotPoint
 The buffer position of the desired character.
Return Value
Type: System.Windows.Media.TextFormatting.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.