IWpfTextViewLine.GetCharacterFormatting(SnapshotPoint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.