IWpfTextViewLineCollection.GetTextViewLineContainingBufferPosition 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 IWpfTextViewLine that contains the specified text buffer position.
public:
Microsoft::VisualStudio::Text::Formatting::IWpfTextViewLine ^ GetTextViewLineContainingBufferPosition(Microsoft::VisualStudio::Text::SnapshotPoint bufferPosition);
public Microsoft.VisualStudio.Text.Formatting.IWpfTextViewLine GetTextViewLineContainingBufferPosition (Microsoft.VisualStudio.Text.SnapshotPoint bufferPosition);
abstract member GetTextViewLineContainingBufferPosition : Microsoft.VisualStudio.Text.SnapshotPoint -> Microsoft.VisualStudio.Text.Formatting.IWpfTextViewLine
Public Function GetTextViewLineContainingBufferPosition (bufferPosition As SnapshotPoint) As IWpfTextViewLine
Parameters
- bufferPosition
- SnapshotPoint
The text buffer position used to search for a text line.
Returns
An IWpfTextViewLine that contains the position, or null if none exist.
Exceptions
bufferPosition
is not a valid buffer position.