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

Description

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

Syntax

styleInstance.GetCurrentAttribute(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.GetCurrentAttribute("color");

Notes

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

Performs the attribute name search that is case-sensitive.

Links for reference

Copyright © Rice All rights reserved.