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

Description

Removes the specified attribute from the element.

Syntax

RemoveAttribute(string attributeName)

Arguments

ClassNameDescription
stringattributeNameA attribute name.

Return value

ClassDescription
boolthe value that indicates success or failure.

Sample code

//anyElement is any instance of element type.

bool success = anyElement.RemoveAttribute("class");

Notes

It's a wrapper of the MSHTML.IHTMLElement5.removeAttribute(String).

If return value is true, removing is success.

If return value is false, removing is failure.

Links for reference

Copyright © Rice All rights reserved.