Partager via


SnapshotSpan.Contains Method (Int32)

Determines whether the position lies within the span.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Déclaration
Public Function Contains ( _
    position As Integer _
) As Boolean
public bool Contains(
    int position
)
public:
bool Contains(
    int position
)
member Contains : 
        position:int -> bool 
public function Contains(
    position : int
) : boolean

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

SnapshotSpan Structure

Contains Overload

Microsoft.VisualStudio.Text Namespace