Share via


ITextDocument.FileActionOccurred Event

Occurs when the document has been loaded from or saved to disk.

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

Syntax

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

Remarks

You may not call the Reload, Save, or SaveAs methods to perform another file action while handling this event.

.NET Framework Security

See Also

Reference

ITextDocument Interface

Microsoft.VisualStudio.Text Namespace