Method GetStringValue
- Namespace
- SharpVectors.Dom.Css
- Assembly
- SharpVectors.Css.dll
GetStringValue()
This method is used to get the string value. If the CSS value doesn't contain a string value, a DomException is raised. Note: Some properties (like 'font-family' or 'voice-family') convert a whitespace separated list of idents to a string.
public virtual string GetStringValue()
Returns
- string
The string value in the current unit. The current primitiveType can only be a string unit type (i.e. CSS_STRING, CSS_URI, CSS_IDENT and CSS_ATTR).
Exceptions
- DomException
INVALID_ACCESS_ERR:
Raised if the CSS value doesn't contain a string value.