Partager via


TextSpan.Contains Method

Definition

Overloads

Contains(TextSpan)

Determines whether span falls completely within this span.

Contains(Int32)

Determines whether the position lies within the span.

Contains(TextSpan)

Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs

Determines whether span falls completely within this span.

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

Parameters

span
TextSpan

The span to check.

Returns

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

Applies to

Contains(Int32)

Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs
Source:
TextSpan.cs

Determines whether the position lies within the span.

public:
 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