Back to Devexpress

RichEditControl.SaveDocument(IWin32Window) Method

wpf-devexpress-dot-xpf-dot-richedit-dot-richeditcontrol-dot-savedocument-x28-system-dot-windows-dot-forms-dot-iwin32window-x29.md

latest2.7 KB
Original Source

RichEditControl.SaveDocument(IWin32Window) Method

Saves a document in its original format to its original location. If original format and location are not specified, invokes the Save As dialog that is shown modally as a child of the specified parent window.

Namespace : DevExpress.Xpf.RichEdit

Assembly : DevExpress.Xpf.RichEdit.v25.2.dll

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
public virtual bool SaveDocument(
    IWin32Window parent
)
vb
Public Overridable Function SaveDocument(
    parent As IWin32Window
) As Boolean

Parameters

NameTypeDescription
parentIWin32Window

The IWin32Window that is the parent window.

|

Returns

TypeDescription
Boolean

true if a document has been successfully saved; otherwise, false.

|

Remarks

Use the SaveDocument method to save changes while editing the document.

The original format is determined by the DocumentSaveOptions.CurrentFormat property. The original location is determined by the DocumentSaveOptions.CurrentFileName property. For the newly created document or a document loaded from a stream, the RichEditControl.SaveDocumentAs method is called.

Note

The SaveDocument method call does not automatically change the RichEditControl.Modified property value.

See Also

CurrentFormat

CurrentFileName

Import and Export in Rich Text Editor for WPF

RichEditControl Class

RichEditControl Members

DevExpress.Xpf.RichEdit Namespace