Home Cooker Classes Others Rice CookerGX
Classes  >  element  >  TagName
element class : TagName getter

Description

Gets the tag name of the element.

Syntax

elementInstance.TagName

Arguments

None

Return value

ClassDescription
stringThe tag name of the element.

Sample code

//anyElement is an any instance of element type.

string tagName = anyElement.TagName;

Notes

It's a wrapper of the MSHTML.IHTMLElement.tagName.

Please note that the result is capitalized.

For example

input tag -> INPUT

div tag -> DIV

Links for reference

Copyright © Rice All rights reserved.