TagSpan<T> Constructor (SnapshotSpan, T)

 

Initializes a new instance of a TagSpan<T> with the specified snapshot span and tag.

Namespace:   Microsoft.VisualStudio.Text.Tagging
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

public:
TagSpan(
	SnapshotSpan span,
	T tag
)

Parameters

span
Type: Microsoft.VisualStudio.Text::SnapshotSpan

The SnapshotSpan with which to associate the tag.

tag
Type: T

The tag associated with the span.

Exception Condition
ArgumentNullException

tag is null.

Return to top
Show: