Class CssAbsPrimitiveValue
- Namespace
- SharpVectors.Dom.Css
- Assembly
- SharpVectors.Css.dll
public sealed class CssAbsPrimitiveValue : CssPrimitiveValue, ICssPrimitiveValue, ICssValue
- Inheritance
-
CssAbsPrimitiveValue
- Implements
- Inherited Members
Constructors
Properties
- CssText
A string representation of the current value.
- IsAbsolute
Gets a value specifiying whether this CSS value an absolute or variable.
This is an implementation extension, not part of the CSS specification.
- PrimitiveType
The type of the value as defined by the constants specified above.
Methods
- GetFloatValue(CssPrimitiveType)
This method is used to get a float value in a specified unit. If this CSS value doesn't contain a float value or can't be converted into the specified unit, a DomException is raised
- GetRectValue()
This method is used to get the Rect value. If this CSS value doesn't contain a rect value, a DomException is raised. Modification to the corresponding style property can be achieved using the Rect interface.
- GetRgbColorValue()
This method is used to get the RGB color. If this CSS value doesn't contain a RGB color value, a DomException is raised. Modification to the corresponding style property can be achieved using the RGBColor interface.
- 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.