Compartilhar via


IClassifier.ClassificationChanged Event

Ocurs when the classification of a span of text has changed.

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

Syntax

'Declaration
Event ClassificationChanged As EventHandler(Of ClassificationChangedEventArgs)
event EventHandler<ClassificationChangedEventArgs> ClassificationChanged
event EventHandler<ClassificationChangedEventArgs^>^ ClassificationChanged {
    void add (EventHandler<ClassificationChangedEventArgs^>^ value);
    void remove (EventHandler<ClassificationChangedEventArgs^>^ value);
}
abstract ClassificationChanged : IEvent<EventHandler<ClassificationChangedEventArgs>,
    ClassificationChangedEventArgs>
JScript does not support events.

Remarks

This event does not need to be raised for newly-inserted text. However, it should be raised if any text other than that which was actually inserted has been reclassified. It should also be raised if the deletion of text causes the remaining text to be reclassified.

.NET Framework Security

See Also

Reference

IClassifier Interface

Microsoft.VisualStudio.Text.Classification Namespace