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
span
Type: Microsoft.VisualStudio.Text.SnapshotSpanThe snapshot span to test
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
- 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.