SnapshotSpan Constructor (ITextSnapshot^, Span)

 

Initializes a new instance of a SnapshotSpan with the specified snapshot and span.

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

public:
SnapshotSpan(
	ITextSnapshot^ snapshot,
	Span span
)

Parameters

snapshot
Type: Microsoft.VisualStudio.Text::ITextSnapshot^

The ITextSnapshot on which to base the snapshot span.

span
Type: Microsoft.VisualStudio.Text::Span

The span of the snapshot span.

Exception Condition
ArgumentNullException

snapshot is null.

ArgumentOutOfRangeException

span.End is greater than snapshot.Length.

Return to top
Show: