次の方法で共有


SnapshotSpan.Contains Method

Definition

Overloads

Contains(SnapshotPoint)

Determines whether a given SnapshotPoint lies within the span.

Contains(SnapshotSpan)

Determines whether snapshotSpan falls completely within this span.

Contains(Span)

Determines whether simpleSpan falls completely within this span.

Contains(Int32)

Determines whether the position lies within the span.

Contains(SnapshotPoint)

Determines whether a given SnapshotPoint lies within the span.

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

Parameters

point
SnapshotPoint

The point to check.

Returns

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

Applies to

Contains(SnapshotSpan)

Determines whether snapshotSpan falls completely within this span.

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

Parameters

snapshotSpan
SnapshotSpan

The span to check.

Returns

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

Applies to

Contains(Span)

Determines whether simpleSpan falls completely within this span.

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

Parameters

simpleSpan
Span

The span to check.

Returns

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

Applies to

Contains(Int32)

Determines whether the position lies within the span.

public:
 bool Contains(int position);
public:
 bool Contains(int position);
bool Contains(int position);
public bool Contains (int position);
member this.Contains : int -> bool
Public Function Contains (position As Integer) As Boolean

Parameters

position
Int32

The position to check.

Returns

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

Applies to