[]
        
(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)
Public Function LoadDocumentAsync(str As String, Optional strType As StringType = StringType.Url) As Task
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)
Public Function LoadDocumentAsync(stream As Stream, Optional leaveOpen As Boolean = False) As Task
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