Enum CssPrimitiveType
- Namespace
- SharpVectors.Dom.Css
- Assembly
- SharpVectors.Core.dll
The CssPrimitiveType enumeration contains the list of possible primitive value types in CSS.
This class is an extension of the CSS spec. The CSS spec has a list of constants instead of an enum class.
public enum CssPrimitiveType
Fields
Unknown = 0The value is not a recognized CSS2 value. The value can only be obtained by using the cssText attribute.
Number = 1The value is a simple number. The value can be obtained by using the getFloatValue method.
Percentage = 2The value is a percentage. The value can be obtained by using the getFloatValue method.
Ems = 3The value is a length (ems). The value can be obtained by using the getFloatValue method.
Exs = 4The value is a length (exs). The value can be obtained by using the getFloatValue method.
Px = 5The value is a length (px). The value can be obtained by using the getFloatValue method.
Cm = 6The value is a length (cm). The value can be obtained by using the getFloatValue method.
Mm = 7The value is a length (mm). The value can be obtained by using the getFloatValue method.
In = 8The value is a length (in). The value can be obtained by using the getFloatValue method.
Pt = 9The value is a length (pt). The value can be obtained by using the getFloatValue method.
Pc = 10The value is a length (pc). The value can be obtained by using the getFloatValue method.
Deg = 11The value is an angle (deg). The value can be obtained by using the getFloatValue method.
Rad = 12The value is an angle (rad). The value can be obtained by using the getFloatValue method.
Grad = 13The value is an angle (grad). The value can be obtained by using the getFloatValue method.
Ms = 14The value is a time (ms). The value can be obtained by using the getFloatValue method.
S = 15The value is a time (s). The value can be obtained by using the getFloatValue method.
Hz = 16The value is a frequency (Hz). The value can be obtained by using the getFloatValue method.
KHz = 17The value is a frequency (kHz). The value can be obtained by using the getFloatValue method.
Dimension = 18The value is a number with an unknown dimension. The value can be obtained by using the getFloatValue method.
String = 19The value is a STRING. The value can be obtained by using the getStringValue method.
Uri = 20The value is a URI. The value can be obtained by using the getStringValue method.
Ident = 21The value is an identifier. The value can be obtained by using the getStringValue method.
Attr = 22The value is a attribute function. The value can be obtained by using the getStringValue method.
Counter = 23The value is a counter or counters function. The value can be obtained by using the getCounterValue method.
Rect = 24The value is a rect function. The value can be obtained by using the getRectValue method.
RgbColor = 25The value is a RGB color. The value can be obtained by using the getRGBColorValue method.
Vars = 25The value is a var() or custom properties.