Share via


Workspace.TextDocumentClosed Event

Definition

Caution

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

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

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

Event Type

Attributes

Applies to