IWpfTextViewLine::GetCharacterFormatting Method (SnapshotPoint)
Visual Studio 2015
Gets the formatting for a particular character in the line.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
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. |
Show: