NormalizedSnapshotSpanCollection::Difference Method (NormalizedSnapshotSpanCollection^, NormalizedSnapshotSpanCollection^)

 

Calculates the difference between two normalized snapshot span collections and normalizes the result.

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

public:
static NormalizedSnapshotSpanCollection^ Difference(
	NormalizedSnapshotSpanCollection^ left,
	NormalizedSnapshotSpanCollection^ right
)

Parameters

left
Type: Microsoft.VisualStudio.Text::NormalizedSnapshotSpanCollection^

The first normalized span collection.

right
Type: Microsoft.VisualStudio.Text::NormalizedSnapshotSpanCollection^

The second normalized span collection.

Return Value

Type: Microsoft.VisualStudio.Text::NormalizedSnapshotSpanCollection^

The (normalized) set of differences between the normalized snapshot span collections..

Exception Condition
ArgumentNullException

left or right is null.

ArgumentException

The collections refer to different snapshots.

Return to top
Show: