次の方法で共有


IWpfTextViewLine.GetCharacterFormatting(SnapshotPoint) Method

Definition

Gets the formatting for a particular character in the line.

public:
 System::Windows::Media::TextFormatting::TextRunProperties ^ GetCharacterFormatting(Microsoft::VisualStudio::Text::SnapshotPoint bufferPosition);
public System.Windows.Media.TextFormatting.TextRunProperties GetCharacterFormatting (Microsoft.VisualStudio.Text.SnapshotPoint bufferPosition);
abstract member GetCharacterFormatting : Microsoft.VisualStudio.Text.SnapshotPoint -> System.Windows.Media.TextFormatting.TextRunProperties
Public Function GetCharacterFormatting (bufferPosition As SnapshotPoint) As TextRunProperties

Parameters

bufferPosition
SnapshotPoint

The buffer position of the desired character.

Returns

The TextRunProperties used to format that character.

Exceptions

bufferPosition does not correspond to a position on this line.

this IWpfTextViewLine has been disposed.

Applies to