SaveEventArgs Interface

 

Provides data for the BeforeSave event.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word (in Microsoft.Office.Tools.Word.dll)

[GuidAttribute("06c7ed15-2df8-4a5c-acf4-10cdd5a6a510")]
public interface class SaveEventArgs

NameDescription
System_CAPS_pubpropertyCancel

Gets or sets a value indicating whether to cancel the save operation.

System_CAPS_pubpropertyShowSaveAsDialog

Gets or sets a value indicating whether to display the Save As dialog box.

The following code example demonstrates an event handler for the BeforeSave event. When you save the document, the event handler prompts you to cancel or continue with the save operation.

This example is for a document-level customization.

No code example is currently available or this language may not be supported.
Return to top
Show: