IWpfTextViewLine::GetCharacterFormatting Method (SnapshotPoint)

 

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)

TextRunProperties^ GetCharacterFormatting(
	SnapshotPoint bufferPosition
)

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.

Exception Condition
ObjectDisposedException

this IWpfTextViewLine has been disposed.

ArgumentOutOfRangeException

bufferPosition does not correspond to a position on this line.

Return to top
Show: