Used in a stylesheet to direct selection requests. A selector describes e.g. the parent node etc.
Public Member Functions | |
StyleRule (Style style) | |
void | AddToDocument (ReflowDocument document) |
Adds this rule to its parent document caches. This is used by the default style sheet when the document gets cleared. More... | |
void | RemoveFromDocument (ReflowDocument document) |
Removes this rule from the lookups in the given document. More... | |
override string | ToString () |
Gets the selector name. More... | |
Public Attributes | |
Style | Style |
The style block to apply if this selector matches in full. More... | |
Selector | Selector |
The selector that this is a style for. More... | |
Css.StyleSheet | ParentStyleSheet |
This styles parent style sheet (if there is one). More... | |
Properties | |
int | type [get] |
Rule type. More... | |
StyleSheet | parentStyleSheet [get] |
The parent stylesheet. More... | |
string | cssText [get, set] |
Css.Style | style [get] |
The rules style. More... | |
Properties inherited from Css.Rule | |
int | type [get] |
The type of rule. More... | |
StyleSheet | parentStyleSheet [get] |
The parent style sheet. More... | |
string | cssText [get, set] |
The CSS text. More... | |
|
inline |
|
inline |
Adds this rule to its parent document caches. This is used by the default style sheet when the document gets cleared.
Implements Css.Rule.
|
inline |
Removes this rule from the lookups in the given document.
Implements Css.Rule.
|
inline |
Gets the selector name.
Css.StyleSheet Css.StyleRule.ParentStyleSheet |
This styles parent style sheet (if there is one).
Selector Css.StyleRule.Selector |
The selector that this is a style for.
Style Css.StyleRule.Style |
The style block to apply if this selector matches in full.
|
getset |
|
get |
The parent stylesheet.
|
get |
The rules style.
|
get |
Rule type.