Method RemoveProperty
- Namespace
- SharpVectors.Dom.Css
- Assembly
- SharpVectors.Css.dll
RemoveProperty(string)
Used to remove a CSS property if it has been explicitly set within this declaration block.
public string RemoveProperty(string propertyName)
Parameters
propertyName
stringThe 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.