Detailed Description

Used in a stylesheet to direct selection requests. A selector describes e.g. the parent node etc.

Inheritance diagram for Css.StyleRule:
Css.Rule

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...
 

Constructor & Destructor Documentation

Css.StyleRule.StyleRule ( Style  style)
inline

Member Function Documentation

void Css.StyleRule.AddToDocument ( ReflowDocument  document)
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.

void Css.StyleRule.RemoveFromDocument ( ReflowDocument  document)
inline

Removes this rule from the lookups in the given document.

Implements Css.Rule.

override string Css.StyleRule.ToString ( )
inline

Gets the selector name.

Member Data Documentation

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.

Property Documentation

string Css.StyleRule.cssText
getset
StyleSheet Css.StyleRule.parentStyleSheet
get

The parent stylesheet.

Css.Style Css.StyleRule.style
get

The rules style.

int Css.StyleRule.type
get

Rule type.