ITextViewLineCollection.ContainsBufferPosition Method
Determines whether the specified buffer position is contained by any of the ITextViewLine objects in the collection.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function ContainsBufferPosition ( _
bufferPosition As SnapshotPoint _
) As Boolean
bool ContainsBufferPosition(
SnapshotPoint bufferPosition
)
bool ContainsBufferPosition(
SnapshotPoint bufferPosition
)
abstract ContainsBufferPosition :
bufferPosition:SnapshotPoint -> bool
function ContainsBufferPosition(
bufferPosition : SnapshotPoint
) : boolean
Parameters
bufferPosition
Type: Microsoft.VisualStudio.Text.SnapshotPointThe buffer position.
Return Value
Type: Boolean
true if bufferPosition is contained by ones of the ITextViewLine objects, otherwise false.
Remarks
This method handles the special processing required for the last line of the buffer.
.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.