共用方式為


ITextEditorFactoryService.TextViewCreated 事件

時引發ITextView就會建立。

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

語法

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

.NET Framework 安全性

請參閱

參考

ITextEditorFactoryService 介面

Microsoft.VisualStudio.Text.Editor 命名空間