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
'Declaración
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
- 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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | classification is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.