ICSSStyleDeclaration.SetProperty

SetProperty(string, string)

The CSSStyleDeclaration.setProperty() method interface is used to set a property value with default priority within this declaration block. Default priority is not “important” i.e. String.Empty

public void SetProperty(string propertyName, string value)
ParameterTypeDescription
propertyNameStringA string representing the CSS property name (hyphen case) to be modified.
valueStringA string containing the new property value. If not specified, treated as the empty string.

See Also


SetProperty(string, string, string)

The CSSStyleDeclaration.setProperty() method interface is used to set a property value with default priority within this declaration block. Default priority is not “important” i.e. String.Empty

public void SetProperty(string propertyName, string value, string priority)
ParameterTypeDescription
propertyNameStringA string representing the CSS property name (hyphen case) to be modified.
valueStringA string containing the new property value. If not specified, treated as the empty string.
priorityStringA string allowing the “important” CSS priority to be set. If not specified, treated as the empty string. The following values are accepted: string value “important”, keyword undefined or string empty value ""

See Also