1 | // <developer>niklas@protocol7.com</developer>
|
---|
2 | // <completed>100</completed>
|
---|
3 |
|
---|
4 | using System;
|
---|
5 |
|
---|
6 | namespace SharpVectors.Dom.Css
|
---|
7 | {
|
---|
8 | /// <summary>
|
---|
9 | /// The CssPrimativeType Enum Class contains the list of possible primitive
|
---|
10 | /// value types in CSS. This class is an extension of the CSS spec. The CSS
|
---|
11 | /// spec has a list of constants instead of an enum class.
|
---|
12 | /// </summary>
|
---|
13 | public enum CssPrimitiveType
|
---|
14 | {
|
---|
15 | /// <summary>
|
---|
16 | /// The value is not a recognized CSS2 value. The value can only be obtained by using the cssText attribute.
|
---|
17 | /// </summary>
|
---|
18 | Unknown = 0,
|
---|
19 | /// <summary>
|
---|
20 | /// The value is a simple number. The value can be obtained by using the getFloatValue method.
|
---|
21 | /// </summary>
|
---|
22 | Number = 1,
|
---|
23 | /// <summary>
|
---|
24 | /// The value is a percentage. The value can be obtained by using the getFloatValue method.
|
---|
25 | /// </summary>
|
---|
26 | Percentage = 2,
|
---|
27 | /// <summary>
|
---|
28 | /// The value is a length (ems). The value can be obtained by using the getFloatValue method.
|
---|
29 | /// </summary>
|
---|
30 | Ems = 3,
|
---|
31 | /// <summary>
|
---|
32 | /// The value is a length (exs). The value can be obtained by using the getFloatValue method.
|
---|
33 | /// </summary>
|
---|
34 | Exs = 4,
|
---|
35 | /// <summary>
|
---|
36 | /// The value is a length (px). The value can be obtained by using the getFloatValue method.
|
---|
37 | /// </summary>
|
---|
38 | Px = 5,
|
---|
39 | /// <summary>
|
---|
40 | /// The value is a length (cm). The value can be obtained by using the getFloatValue method.
|
---|
41 | /// </summary>
|
---|
42 | Cm = 6,
|
---|
43 | /// <summary>
|
---|
44 | /// The value is a length (mm). The value can be obtained by using the getFloatValue method.
|
---|
45 | /// </summary>
|
---|
46 | Mm = 7,
|
---|
47 | /// <summary>
|
---|
48 | /// The value is a length (in). The value can be obtained by using the getFloatValue method.
|
---|
49 | /// </summary>
|
---|
50 | In = 8,
|
---|
51 | /// <summary>
|
---|
52 | /// The value is a length (pt). The value can be obtained by using the getFloatValue method.
|
---|
53 | /// </summary>
|
---|
54 | Pt = 9,
|
---|
55 | /// <summary>
|
---|
56 | /// The value is a length (pc). The value can be obtained by using the getFloatValue method.
|
---|
57 | /// </summary>
|
---|
58 | Pc = 10,
|
---|
59 | /// <summary>
|
---|
60 | /// The value is an angle (deg). The value can be obtained by using the getFloatValue method.
|
---|
61 | /// </summary>
|
---|
62 | Deg = 11,
|
---|
63 | /// <summary>
|
---|
64 | /// The value is an angle (rad). The value can be obtained by using the getFloatValue method.
|
---|
65 | /// </summary>
|
---|
66 | Rad = 12,
|
---|
67 | /// <summary>
|
---|
68 | /// The value is an angle (grad). The value can be obtained by using the getFloatValue method.
|
---|
69 | /// </summary>
|
---|
70 | Grad = 13,
|
---|
71 | /// <summary>
|
---|
72 | /// The value is a time (ms). The value can be obtained by using the getFloatValue method.
|
---|
73 | /// </summary>
|
---|
74 | Ms = 14,
|
---|
75 | /// <summary>
|
---|
76 | /// The value is a time (s). The value can be obtained by using the getFloatValue method.
|
---|
77 | /// </summary>
|
---|
78 | S = 15,
|
---|
79 | /// <summary>
|
---|
80 | /// The value is a frequency (Hz). The value can be obtained by using the getFloatValue method.
|
---|
81 | /// </summary>
|
---|
82 | Hz = 16,
|
---|
83 | /// <summary>
|
---|
84 | /// The value is a frequency (kHz). The value can be obtained by using the getFloatValue method.
|
---|
85 | /// </summary>
|
---|
86 | KHz = 17,
|
---|
87 | /// <summary>
|
---|
88 | /// The value is a number with an unknown dimension. The value can be obtained by using the getFloatValue method.
|
---|
89 | /// </summary>
|
---|
90 | Dimension = 18,
|
---|
91 | /// <summary>
|
---|
92 | /// The value is a STRING. The value can be obtained by using the getStringValue method.
|
---|
93 | /// </summary>
|
---|
94 | String = 19,
|
---|
95 | /// <summary>
|
---|
96 | /// The value is a URI. The value can be obtained by using the getStringValue method.
|
---|
97 | /// </summary>
|
---|
98 | Uri = 20,
|
---|
99 | /// <summary>
|
---|
100 | /// The value is an identifier. The value can be obtained by using the getStringValue method.
|
---|
101 | /// </summary>
|
---|
102 | Ident = 21,
|
---|
103 | /// <summary>
|
---|
104 | /// The value is a attribute function. The value can be obtained by using the getStringValue method.
|
---|
105 | /// </summary>
|
---|
106 | Attr = 22,
|
---|
107 | /// <summary>
|
---|
108 | /// The value is a counter or counters function. The value can be obtained by using the getCounterValue method.
|
---|
109 | /// </summary>
|
---|
110 | Counter = 23,
|
---|
111 | /// <summary>
|
---|
112 | /// The value is a rect function. The value can be obtained by using the getRectValue method.
|
---|
113 | /// </summary>
|
---|
114 | Rect = 24,
|
---|
115 | /// <summary>
|
---|
116 | /// The value is a RGB color. The value can be obtained by using the getRGBColorValue method.
|
---|
117 | /// </summary>
|
---|
118 | RgbColor = 25
|
---|
119 | }
|
---|
120 | }
|
---|