共用方式為


IEditorOptions.OptionChanged 事件

發生於有任何選項變更時。

命名空間:  Microsoft.VisualStudio.Text.Editor
組件:  Microsoft.VisualStudio.Text.Logic (在 Microsoft.VisualStudio.Text.Logic.dll 中)

語法

'宣告
Event OptionChanged As EventHandler(Of EditorOptionChangedEventArgs)
event EventHandler<EditorOptionChangedEventArgs> OptionChanged
event EventHandler<EditorOptionChangedEventArgs^>^ OptionChanged {
    void add (EventHandler<EditorOptionChangedEventArgs^>^ value);
    void remove (EventHandler<EditorOptionChangedEventArgs^>^ value);
}
abstract OptionChanged : IEvent<EventHandler<EditorOptionChangedEventArgs>,
    EditorOptionChangedEventArgs>
JScript 不支援事件。

備註

如果全域範圍中有適用於這個範圍的選項變更,也會引發這個事件。

.NET Framework 安全性

請參閱

參考

IEditorOptions 介面

Microsoft.VisualStudio.Text.Editor 命名空間