Compartir a través de


NormalizedSnapshotSpanCollection.Intersection Method

Calculates the intersection of two normalized snapshot span collections and normalizes the result.

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

Syntax

'Declaración
Public Shared Function Intersection ( _
    left As NormalizedSnapshotSpanCollection, _
    right As NormalizedSnapshotSpanCollection _
) As NormalizedSnapshotSpanCollection
public static NormalizedSnapshotSpanCollection Intersection(
    NormalizedSnapshotSpanCollection left,
    NormalizedSnapshotSpanCollection right
)
public:
static NormalizedSnapshotSpanCollection^ Intersection(
    NormalizedSnapshotSpanCollection^ left, 
    NormalizedSnapshotSpanCollection^ right
)
static member Intersection : 
        left:NormalizedSnapshotSpanCollection * 
        right:NormalizedSnapshotSpanCollection -> NormalizedSnapshotSpanCollection 
public static function Intersection(
    left : NormalizedSnapshotSpanCollection, 
    right : NormalizedSnapshotSpanCollection
) : NormalizedSnapshotSpanCollection

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
The normalized set of intersecting spans.

Exceptions

Exception Condition
ArgumentNullException

left or right is nulla null reference (Nothing in Visual Basic).

ArgumentException

The collections refer to different snapshots.

.NET Framework Security

See Also

Reference

NormalizedSnapshotSpanCollection Class

Microsoft.VisualStudio.Text Namespace