[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.RemoveElementAsync

RemoveElementAsync Method

RemoveElementAsync(string, string, string, bool)

Removes element by its ID, tag and/or class name asynchronously.

Declaration
public Task RemoveElementAsync(string elementId, string tag = null, string className = null, bool removeChildren = true)
Public Function RemoveElementAsync(elementId As String, Optional tag As String = Nothing, Optional className As String = Nothing, Optional removeChildren As Boolean = True) As Task
Parameters
Type Name Description
string elementId

Element ID to remove.

string tag

Tag name to remove.

string className

Class name of the elements to remove.

bool removeChildren

Determines whether child elements should also be removed.

Returns
Type Description
Task
Remarks

Body cannot be removed. Instead, it will be cleared.