Home Cooker Classes Others Rice CookerGX
Classes  >  document  >  CreateElement(string)
document class : CreateElement(string) method

Description

Creates an instance of the element for the specified tag.

Syntax

documentInstance.CreateElement(string tagName)

Arguments

ClassNameDescription
stringtagNameA tag name.

Return value

ClassDescription
elementAn instance of the element type.

Sample code

document d = new document();

element a =d.CreateElement("a");

Notes

It's a wrapper of the MSHTML.IHTMLDocument2.createElement(String).

Links for reference

Copyright © Rice All rights reserved.