Editor for WinForms | ComponentOne
C1.Win.Editor.8 Assembly / C1.Win.Editor Namespace / C1Editor Class / RemoveElement Method
Element ID to remove.
Tag name to remove.
Class name of the elements to remove.
Determines whether child elements should also be removed.

In This Topic
    RemoveElement Method
    In This Topic
    Removes element by its ID, tag and/or class name.
    Syntax
    'Declaration
     
    Public Sub RemoveElement( _
       ByVal elementId As System.String, _
       Optional ByVal tag As System.String, _
       Optional ByVal className As System.String, _
       Optional ByVal removeChildren As System.Boolean _
    ) 
    public void RemoveElement( 
       System.string elementId,
       System.string tag,
       System.string className,
       System.bool removeChildren
    )

    Parameters

    elementId
    Element ID to remove.
    tag
    Tag name to remove.
    className
    Class name of the elements to remove.
    removeChildren
    Determines whether child elements should also be removed.
    Remarks
    Body cannot be removed. Instead, it will be cleared.
    See Also