ClassificationSpan Constructor

Initializes a new instance of a ClassificationSpan.

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

Syntax

声明
Public Sub New ( _
    span As SnapshotSpan, _
    classification As IClassificationType _
)
public ClassificationSpan(
    SnapshotSpan span,
    IClassificationType classification
)
public:
ClassificationSpan(
    SnapshotSpan span, 
    IClassificationType^ classification
)
new : 
        span:SnapshotSpan * 
        classification:IClassificationType -> ClassificationSpan
public function ClassificationSpan(
    span : SnapshotSpan, 
    classification : IClassificationType
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

classification is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ClassificationSpan Class

Microsoft.VisualStudio.Text.Classification Namespace