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

Description

Gets the value of the specified attribute name that have been applied to the element.

Syntax

styleInstance.GetRuntimeAttribute(string attributeName)

Arguments

ClassNameDescription
stringattributeNameAttribute name.

Return value

ClassDescription
stringThe value of the specified attribute name.

Sample code

//anyStyle is a instance of style type.

string attributeValue = anyStyle.GetRuntimeAttribute("color");

Notes

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

Performs the attribute name search that is case-sensitive.

Gets only the value that was set at the runtime.

Returns an empty string if there is no value that was set at the runtime.

Links for reference

Copyright © Rice All rights reserved.