Condividi tramite


NormalizedSnapshotSpanCollection.IntersectsWith Method (SnapshotSpan)

Determines whether this collection overlaps with a snapshot span.

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

Syntax

'Declaration
Public Function IntersectsWith ( _
    span As SnapshotSpan _
) As Boolean
public bool IntersectsWith(
    SnapshotSpan span
)
public:
bool IntersectsWith(
    SnapshotSpan span
)
member IntersectsWith : 
        span:SnapshotSpan -> bool
public function IntersectsWith(
    span : SnapshotSpan
) : boolean

Parameters

Return Value

Type: Boolean
True if the collections intersect, otherwise false

Exceptions

Exception Condition
ArgumentException

The collection and the span refer to different snapshots.

.NET Framework Security

See Also

Reference

NormalizedSnapshotSpanCollection Class

IntersectsWith Overload

Microsoft.VisualStudio.Text Namespace