Table of Contents

Method SetProperty

Namespace
SharpVectors.Dom.Css
Assembly
SharpVectors.Core.dll

SetProperty(string, string, string)

Used to set a property value and priority within this declaration block.

void SetProperty(string propertyName, string value, string priority)

Parameters

propertyName string

The name of the CSS property. See the CSS property index.

value string

The new value of the property.

priority string

The new priority of the property (e.g. "important").

Exceptions

DomException

SYNTAX_ERR: Raised if the specified value has a syntax error and is unparsable.

DomException

NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly or the property is readonly.