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

Description

Replaces the invoker element with another element.

Syntax

elementInstance.Replace(element targetElement)

Arguments

ClassNameDescription
elementtargetElementA elemnt which to replace.

Return value

None

Sample code

//anyElement and targetElement are any instance of element type.

anyElement.Replace(targetElement);

Notes

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

Links for reference

Copyright © Rice All rights reserved.