共用方式為


NormalizedSnapshotSpanCollection.Overlap Method

Calculates the overlap 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

'宣告
Public Shared Function Overlap ( _
    left As NormalizedSnapshotSpanCollection, _
    right As NormalizedSnapshotSpanCollection _
) As NormalizedSnapshotSpanCollection
public static NormalizedSnapshotSpanCollection Overlap(
    NormalizedSnapshotSpanCollection left,
    NormalizedSnapshotSpanCollection right
)
public:
static NormalizedSnapshotSpanCollection^ Overlap(
    NormalizedSnapshotSpanCollection^ left, 
    NormalizedSnapshotSpanCollection^ right
)
static member Overlap : 
        left:NormalizedSnapshotSpanCollection * 
        right:NormalizedSnapshotSpanCollection -> NormalizedSnapshotSpanCollection 
public static function Overlap(
    left : NormalizedSnapshotSpanCollection, 
    right : NormalizedSnapshotSpanCollection
) : NormalizedSnapshotSpanCollection

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

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

ArgumentException

The input collections refer to different snapshots.

Remarks

An empty snapshot span never overlaps any other snapshot span.

.NET Framework Security

See Also

Reference

NormalizedSnapshotSpanCollection Class

Microsoft.VisualStudio.Text Namespace