ClassificationSpan(SnapshotSpan, IClassificationType) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.