Home Cooker Classes Others Rice CookerGX
Classes  >  style  >  RemoveRuntimeAttribute(string)
style class : RemoveRuntimeAttribute(string) method

Description

Removes the specified attribute.

Syntax

styleInstance.RemoveRuntimeAttribute(string attributeName)

Arguments

ClassNameDescription
stringattributeNameAttribute name.

Return value

ClassDescription
boolA value that indicates whether was deleted.

Sample code

//anyStyle is a instance of style type.

bool success = anyStyle.RemoveRuntimeAttribute("color");

Notes

It's a wrapper of the MSHTML.IHTMLStyle.removeAttribute(string,int).

Performs the attribute name search that is case-sensitive.

Removes only the value that was set at the runtime.

Returns true if success. Otherwise, returns false.

Links for reference

Copyright © Rice All rights reserved.