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

Description

Sets the value of the specified attribute.

Syntax

SetRuntimeAttribute(string attributeName, string attributeValue)

Arguments

ClassNameDescription
stringattributeNameAttribute name.
stringattributeValueValue of the attribute.

Return value

None

Sample code

//anyStyle is a instance of style type.

anyStyle.SetRuntimeAttribute("color","red");

Notes

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

Performs the attribute name search that is case-sensitive.

Links for reference

Copyright © Rice All rights reserved.