IClassifier.ClassificationChanged 事件

当文本范围的分类更改时发生。

命名空间:  Microsoft.VisualStudio.Text.Classification
程序集:  Microsoft.VisualStudio.Text.Logic(在 Microsoft.VisualStudio.Text.Logic.dll 中)

语法

声明
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 不支持事件。

备注

此事件不需要为新插入的文本引发。 但是,则应引发,则重新分类了除实际上插入的功能外的任何文本。 ,则会导致剩余的文本重新分类,还应引发文本中删除。

.NET Framework 安全性

请参阅

参考

IClassifier 接口

Microsoft.VisualStudio.Text.Classification 命名空间