Home Cooker Classes Others Rice CookerGX
Classes  >  element  >  Remove(bool)
element class : Remove(bool) method

Description

Removes the element from the document hierarchy.

Syntax

elementInstance.Remove(bool deep)

Arguments

ClassNameDescription
booldeepA value that indicates whether children will be removed together.

Return value

None

Sample code

//anyElement is any instance of element type.

anyElement.Remove(true);

Notes

It's a wrapper of the MSHTML.IHTMLDOMNode.removeNode(Bool).

If the argument is true, the children will be removed together.

If the argument is false, the children will be left in its original location.

Links for reference

Copyright © Rice All rights reserved.