[]
        
(Showing Draft Content)

C1.Win.Editor.C1Editor.RemoveElement

RemoveElement Method

RemoveElement(string, string, string, bool)

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

Declaration
[Obsolete("This method is deprecated, please, use RemoveElementAsync instead.")]
public void RemoveElement(string elementId, string tag = null, string className = null, bool removeChildren = true)
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.

Remarks

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