ICSSStyleDeclaration.RemoveProperty

ICSSStyleDeclaration.RemoveProperty method

The CSSStyleDeclaration.removeProperty() method interface removes a property from a CSS style declaration object.

public string RemoveProperty(string propertyName)
ParameterTypeDescription
propertyNameStringpropertyName is a string representing the property name to be removed. Note that multi-word property names are hyphenated and not camel-cased.

Return Value

oldValue is a DOMString equal to the value of the CSS property before it was removed.

Exceptions

exceptioncondition
DOMExceptionNO_MODIFICATION_ALLOWED_ERR: if the property or declaration block is read only.

See Also