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

Description

Merges the attributes of the two elements, and writes it to the invoker element.

Syntax

elementInstance.MergeAttributes(element targetElement)

Arguments

ClassNameDescription
elementtargetElementA element.

Return value

None

Sample code

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

anyElement.MergeAttributes(targetElement);

Notes

It's a wrapper of the MSHTML.IHTMLElement2.mergeAttributes(IHTMLElement).

The id attribute will not be merged.

The merged attributes will be written to the invoker element.

Links for reference

Copyright © Rice All rights reserved.