Share via


VirtualSnapshotSpan.Contains Method (VirtualSnapshotSpan)

Determines whether the specified virtual span falls completely within this virtual span.

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

Syntax

'Declaration
Public Function Contains ( _
    virtualSpan As VirtualSnapshotSpan _
) As Boolean
public bool Contains(
    VirtualSnapshotSpan virtualSpan
)
public:
bool Contains(
    VirtualSnapshotSpan virtualSpan
)
member Contains : 
        virtualSpan:VirtualSnapshotSpan -> bool
public function Contains(
    virtualSpan : VirtualSnapshotSpan
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the specified span falls completely within this span, otherwise false.

.NET Framework Security

See Also

Reference

VirtualSnapshotSpan Structure

Contains Overload

Microsoft.VisualStudio.Text Namespace