共用方式為


ITextDocumentFactoryService.TextDocumentCreated Event

Occurs when an ITextDocument is created.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

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

.NET Framework Security

See Also

Reference

ITextDocumentFactoryService Interface

Microsoft.VisualStudio.Text Namespace