GH_CssStyle
ReferencesRepresents a single CSS style, consisting of a selector and a collection of properties.
Constructors
GH_CssStyle
#Create a new CSS style.
Parameters:
| selector (string) | Style selector. |
| property (GH_CssProperty) | Style property. |
GH_CssStyle
#Create a new CSS style.
Parameters:
| selector (string) | Style selector. |
| properties (IEnumerable<GH_CssProperty>) | Style properties. |
Properties
Methods
AddProperty
#Add a property to this style. If the new property conflicts with an existing property, it will not be added.
Parameters:
| property (GH_CssProperty) | Property to add. |
AddProperty
#CompareTo
#Compare this CSS style to another one. Comments are ignored in the comparison.
Parameters:
| other (GH_CssStyle) | Style to compare to. |