Table of Contents

Method RemoveProperty

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

RemoveProperty(string)

Used to remove a CSS property if it has been explicitly set within this declaration block.

string RemoveProperty(string propertyName)

Parameters

propertyName string

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

Returns

string

Returns the value of the property if it has been explicitly set for this declaration block. Returns the empty string if the property has not been set or the property name does not correspond to a known CSS property.

Exceptions

DomException

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