[]
Loads content from the string asynchronously.
public Task LoadDocumentAsync(string str, StringType strType = StringType.Url)
Public Function LoadDocumentAsync(str As String, Optional strType As StringType = StringType.Url) As Task
| Type | Name | Description |
|---|---|---|
| string | str | The string to load. |
| StringType | strType | Type of the load string. |
| Type | Description |
|---|---|
| Task |
This method loads the document asynchronously after the C1Editor instance is ready. It should be called only once initialization is complete. To do so, use the C1EditorReady event.
Loads content from the stream asynchronously.
public Task LoadDocumentAsync(Stream stream, bool leaveOpen = false)
Public Function LoadDocumentAsync(stream As Stream, Optional leaveOpen As Boolean = False) As Task
| 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. |
| Type | Description |
|---|---|
| Task |
This method loads the content asynchronously after the C1Editor instance is ready. It should be called only once initialization is complete. To do so, use the C1EditorReady event.