VirtualSnapshotSpan.Contains Method

Definition

Overloads

Contains(VirtualSnapshotPoint)

Determines whether or not the given virtual point is contained within this virtual span.

Contains(VirtualSnapshotSpan)

Determines whether virtualSpan falls completely within this virtual span.

Contains(VirtualSnapshotPoint)

Determines whether or not the given virtual point is contained within this virtual span.

public:
 bool Contains(Microsoft::VisualStudio::Text::VirtualSnapshotPoint virtualPoint);
public bool Contains (Microsoft.VisualStudio.Text.VirtualSnapshotPoint virtualPoint);
member this.Contains : Microsoft.VisualStudio.Text.VirtualSnapshotPoint -> bool
Public Function Contains (virtualPoint As VirtualSnapshotPoint) As Boolean

Parameters

virtualPoint
VirtualSnapshotPoint

The virtual point to check.

Returns

true if the position is greater than or equal to Start and strictly less than End, otherwise false.

Applies to

Contains(VirtualSnapshotSpan)

Determines whether virtualSpan falls completely within this virtual span.

public:
 bool Contains(Microsoft::VisualStudio::Text::VirtualSnapshotSpan virtualSpan);
bool Contains(Microsoft::VisualStudio::Text::VirtualSnapshotSpan virtualSpan);
public bool Contains (Microsoft.VisualStudio.Text.VirtualSnapshotSpan virtualSpan);
member this.Contains : Microsoft.VisualStudio.Text.VirtualSnapshotSpan -> bool
Public Function Contains (virtualSpan As VirtualSnapshotSpan) As Boolean

Parameters

virtualSpan
VirtualSnapshotSpan

The virtual span to check.

Returns

true if the specified span falls completely within this span, otherwise false.

Applies to