[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.InsertIntoElementAsync

InsertIntoElementAsync Method

InsertIntoElementAsync(string, ContentInsertMode, string, string, string)

Inserts the specified HTML fragment into the found elements asynchronously.

Declaration
public Task InsertIntoElementAsync(string htmlFragment, ContentInsertMode insertMode, string elementId = null, string elementTag = null, string elementClass = null)
Public Function InsertIntoElementAsync(htmlFragment As String, insertMode As ContentInsertMode, Optional elementId As String = Nothing, Optional elementTag As String = Nothing, Optional elementClass As String = Nothing) As Task
Parameters
Type Name Description
string htmlFragment

The HTML fragment to insert into the target element.

ContentInsertMode insertMode

Specifies whether the HTML fragment is inserted as the first child, the last child, or replaces the existing content of the target element.

string elementId

The ID of the target element.

string elementTag

The tag name of the target elements.

string elementClass

The class name of the target elements.

Returns
Type Description
Task