[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.InsertBeforeElementAsync

InsertBeforeElementAsync Method

InsertBeforeElementAsync(string, string, string, string)

Inserts the specified HTML fragment before the found elements asynchronously.

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

HTML fragment to insert before the target element.

string elementId

The ID of the element before which the content will be inserted.

string elementTag

The tag name of the elements before which the content will be inserted.

string elementClass

The class name of the elements before which the content will be inserted.

Returns
Type Description
Task