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

Description

Removes a child element from the invoker.

Syntax

elementInstance.RemoveChild(element targetElement)

Arguments

ClassNameDescription
elementtargetElementA child element of the invoker.

Return value

None

Sample code

//anyElement is any instance of element type.

//targetElement is child of anyElement.

anyElement.RemoveChild(targetElement);

Notes

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

Argument need to be child of the invoker.

If argument has child, it will be removed together.

Links for reference

Copyright © Rice All rights reserved.