Share via


Workspace.TextDocumentOpened Event

Definition

Caution

Use RegisterTextDocumentOpenedHandler instead, which by default will no longer run on the UI thread.

An event that is fired when any TextDocument is opened in the editor.

public event EventHandler<Microsoft.CodeAnalysis.TextDocumentEventArgs> TextDocumentOpened;
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("Use RegisterTextDocumentOpenedHandler instead, which by default will no longer run on the UI thread.", false)]
public event EventHandler<Microsoft.CodeAnalysis.TextDocumentEventArgs> TextDocumentOpened;
member this.TextDocumentOpened : EventHandler<Microsoft.CodeAnalysis.TextDocumentEventArgs> 
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
[<System.Obsolete("Use RegisterTextDocumentOpenedHandler instead, which by default will no longer run on the UI thread.", false)>]
member this.TextDocumentOpened : EventHandler<Microsoft.CodeAnalysis.TextDocumentEventArgs> 
Public Custom Event TextDocumentOpened As EventHandler(Of TextDocumentEventArgs) 

Event Type

Attributes

Applies to