Share via


ITextViewLine.ContainsBufferPosition Method

Determines whether the specified buffer position lies within this text line.

Namespace:  Microsoft.VisualStudio.Text.Formatting
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

Return Value

Type: System.Boolean
true if bufferPosition lies within this text line, otherwise false.

Remarks

This method handles the special processing required for the last line of the buffer.

.NET Framework Security

See Also

Reference

ITextViewLine Interface

Microsoft.VisualStudio.Text.Formatting Namespace