Compartir a través de


ClassificationSpan(SnapshotSpan, IClassificationType) Constructor

Definition

Initializes a new instance of a ClassificationSpan.

public:
 ClassificationSpan(Microsoft::VisualStudio::Text::SnapshotSpan span, Microsoft::VisualStudio::Text::Classification::IClassificationType ^ classification);
 ClassificationSpan(Microsoft::VisualStudio::Text::SnapshotSpan span, Microsoft::VisualStudio::Text::Classification::IClassificationType const & classification);
public ClassificationSpan (Microsoft.VisualStudio.Text.SnapshotSpan span, Microsoft.VisualStudio.Text.Classification.IClassificationType classification);
new Microsoft.VisualStudio.Text.Classification.ClassificationSpan : Microsoft.VisualStudio.Text.SnapshotSpan * Microsoft.VisualStudio.Text.Classification.IClassificationType -> Microsoft.VisualStudio.Text.Classification.ClassificationSpan
Public Sub New (span As SnapshotSpan, classification As IClassificationType)

Parameters

span
SnapshotSpan

The span of text to which the classification applies.

classification
IClassificationType

The classification type of the span.

Exceptions

classification is null.

Applies to