Method SetStringValue
- Namespace
- SharpVectors.Dom.Css
- Assembly
- SharpVectors.Core.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.
void SetStringValue(CssPrimitiveType stringType, string stringValue)
Parameters
stringType
CssPrimitiveTypeA string code as defined above. The string code can only be a string unit type (i.e.
STRING
,URI
,IDENT
, andATTR
).stringValue
stringThe new string value.
Exceptions
- DomException
INVALID_ACCESS_ERR:
Raised if the CSS value doesn't contain a string value or if the string value can't be converted into the specified unit.- DomException
NO_MODIFICATION_ALLOWED_ERR:
Raised if this property is readonly.