SnapshotSpan.Contains Method (SnapshotSpan)
Determines whether the snapshot span falls completely within this span.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Declaration
Public Function Contains ( _
snapshotSpan As SnapshotSpan _
) As Boolean
public bool Contains(
SnapshotSpan snapshotSpan
)
public:
bool Contains(
SnapshotSpan snapshotSpan
)
member Contains :
snapshotSpan:SnapshotSpan -> bool
public function Contains(
snapshotSpan : SnapshotSpan
) : boolean
Parameters
snapshotSpan
Type: Microsoft.VisualStudio.Text.SnapshotSpanThe SnapshotSpan to check.
Return Value
Type: System.Boolean
true if the specified span falls completely within this span, otherwise false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.