Table of Contents

Method SetStringValue

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

SetStringValue(CssPrimitiveType, string)

A method to set the string value with the specified unit. If the property attached to this value can't accept the specified unit or the string value, the value will be unchanged and a DomException will be raised.

public virtual void SetStringValue(CssPrimitiveType stringType, string stringValue)

Parameters

stringType CssPrimitiveType

A string code as defined above. The string code can only be a string unit type (i.e. CSS_STRING, CSS_URI, CSS_IDENT, and CSS_ATTR).

stringValue string

The new string value

Exceptions

DomException

INVALID_ACCESS_ERR: Raised if the CSS value doesn't contain a string value.

DomException

NO_MODIFICATION_ALLOWED_ERR: Raised if this property is readonly.