Udostępnij za pośrednictwem


Span.Contains Method

Definition

Overloads

Contains(Span)

Determines whether span falls completely within this span.

Contains(Int32)

Determines whether the position lies within the span.

Contains(Span)

Determines whether span falls completely within this span.

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

Parameters

span
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 Start and strictly less than End, otherwise false.

Applies to