ClassificationSpan Constructor (SnapshotSpan, IClassificationType^)

 

Initializes a new instance of a ClassificationSpan.

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

public:
ClassificationSpan(
	SnapshotSpan span,
	IClassificationType^ classification
)

Parameters

span
Type: Microsoft.VisualStudio.Text::SnapshotSpan

The span of text to which the classification applies.

classification
Type: Microsoft.VisualStudio.Text.Classification::IClassificationType^

The classification type of the span.

Exception Condition
ArgumentNullException

classification is null.

Return to top
Show: