[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.SaveDocumentAsync

SaveDocumentAsync Method

SaveDocumentAsync(string)

Saves the current editor content to the specified filepath asynchronously.

Declaration
public Task SaveDocumentAsync(string filename)
Parameters
Type Name Description
string filename

Full path of the file to save the content.

Returns
Type Description
Task

SaveDocumentAsync(Stream, bool)

Saves the current editor content to the stream asynchronously.

Declaration
public Task SaveDocumentAsync(Stream stream, bool leaveOpen = false)
Parameters
Type Name Description
Stream stream

Stream to save the content.

bool leaveOpen

true to leave the stream open after the System.IO.BinaryReader object is disposed; otherwise, false.

Returns
Type Description
Task