Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
setProperty
top
Collapse the table of content
Expand the table of content

setProperty method

Sets a property value and priority within the current declaration block.

Document Object Model (DOM) Level 2 Style Specification, Section 2.2Internet Explorer 9

 

Syntax


HRESULT retVal = object.setProperty(bstrPropertyName, bstrPropertyValue, bstrPropertyPriority);

Parameters

bstrPropertyName [in]

Type: BSTR

The name of the CSS property.

bstrPropertyValue [in]

Type: BSTR

The new value of the property.

bstrPropertyPriority [in]

Type: BSTR

The new priority of the property (for example, !important).

Return value

Type: HRESULT

This method can return one of these values.

Standards information

See also

Reference
IHTMLCSSStyleDeclaration::getPropertyPriority
IHTMLCSSStyleDeclaration::getPropertyValue
IHTMLCSSStyleDeclaration::item
IHTMLCSSStyleDeclaration::length
IHTMLCSSStyleDeclaration::removeProperty

 

 

Community Additions

ADD
Show:
© 2015 Microsoft