[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.LoadDocumentAsync

LoadDocumentAsync Method

LoadDocumentAsync(string, StringType)

Loads content from the string asynchronously.

Declaration
public Task LoadDocumentAsync(string str, StringType strType = StringType.Url)
Parameters
Type Name Description
string str

The string to load.

StringType strType

Type of the load string.

Returns
Type Description
Task

LoadDocumentAsync(Stream, bool)

Loads content from the stream asynchronously.

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

The stream of document to load.

bool leaveOpen

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

Returns
Type Description
Task