IWpfTextViewLineCollection.GetTextViewLineContainingBufferPosition Method (SnapshotPoint)
Gets the IWpfTextViewLine that contains the specified text buffer position.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Syntax
声明
Function GetTextViewLineContainingBufferPosition ( _
bufferPosition As SnapshotPoint _
) As IWpfTextViewLine
IWpfTextViewLine GetTextViewLineContainingBufferPosition(
SnapshotPoint bufferPosition
)
IWpfTextViewLine^ GetTextViewLineContainingBufferPosition(
SnapshotPoint bufferPosition
)
abstract GetTextViewLineContainingBufferPosition :
bufferPosition:SnapshotPoint -> IWpfTextViewLine
function GetTextViewLineContainingBufferPosition(
bufferPosition : SnapshotPoint
) : IWpfTextViewLine
Parameters
- bufferPosition
Type: Microsoft.VisualStudio.Text.SnapshotPoint
The text buffer position used to search for a text line.
Return Value
Type: Microsoft.VisualStudio.Text.Formatting.IWpfTextViewLine
An ITextViewLine that contains the position, or nulla null reference (Nothing in Visual Basic) if none exist.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | bufferPosition is not a valid buffer position. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IWpfTextViewLineCollection Interface