.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SaveDocumentCommand Class

Saves a document to a file.

Namespace: DevExpress.XtraRichEdit.Commands

Assembly: DevExpress.RichEdit.v21.2.Core.dll

Declaration

public class SaveDocumentCommand :
    RichEditMenuItemSimpleCommand

Remarks

The SaveDocumentCommand command saves a document to the DocumentSaveOptions.CurrentFileName file in DocumentSaveOptions.CurrentFormat. The DocumentSaveOptions property values are set when the document is loaded or saved. If they have null values, i.e. a document is saved for the first time, the Save as dialog is invoked, prompting the user for a filename and a file type.

Use the Document.SaveDocument API method to achieve the same result.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SaveDocumentCommand class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
Command
DevExpress.Utils.Commands.ControlCommand<IRichEditControl, RichEditCommandId, DevExpress.XtraRichEdit.Localization.XtraRichEditStringId>
DevExpress.XtraRichEdit.Commands.RichEditCommandBase<DevExpress.XtraRichEdit.Localization.XtraRichEditStringId>
See Also