PowerUI.Css.Properties.Content Class Reference

Detailed Description

Represents the content: css property. Note that this one is not textual - this is actually correct. It doesn't apply to text - rather it 'is' text.

Inheritance diagram for PowerUI.Css.Properties.Content:
PowerUI.Css.CssProperty

Public Member Functions

 Content ()
 
override string[] GetProperties ()
 The set of all properties that this one will handle. Usually just one. e.g. "v-align", "vertical-align". More...
 
override void Apply (ComputedStyle style, Value value)
 Apply this CSS style to the given computed style. Note that you can grab the element from the computed style if you need that. More...
 
- Public Member Functions inherited from PowerUI.Css.CssProperty
virtual void SetDefault (Css.Value value, ValueType type)
 Sets the default value for this property into the given value. More...
 
BackgroundImage GetBackground (ComputedStyle style)
 Call this if the current property requires a background image object. More...
 
BorderProperty GetBorder (ComputedStyle style)
 Call this if the current property requies a border object. More...
 
TextRenderingProperty GetText (ComputedStyle style)
 Call this if the current property requires a text object. NOTE: This one may be null. More...
 

Private Member Functions

void SetValue (CssProperty property, ComputedStyle style)
 Sets the named css property from the given style if the property exists in the style. More...
 

Additional Inherited Members

- Public Attributes inherited from PowerUI.Css.CssProperty
string Name
 The main property name. Some properties use multiple names (e.g. content and inner-text). More...
 
bool IsTextual
 Does this css property apply to text? E.g. font-size, color etc. More...
 
bool IsXProperty
 True if this property occurs along the x axis. E.g. width, left, right. More...
 
bool IsWidthOrHeight
 True if this is width or height only. More...
 
ValueType Type =ValueType.Null
 The optional type of this property, if it defines it. More...
 

Constructor & Destructor Documentation

PowerUI.Css.Properties.Content.Content ( )
inline

Member Function Documentation

override void PowerUI.Css.Properties.Content.Apply ( ComputedStyle  style,
Value  value 
)
inlinevirtual

Apply this CSS style to the given computed style. Note that you can grab the element from the computed style if you need that.

Parameters
styleThe computed style to apply the property to.
valueThe new value being applied.

Reimplemented from PowerUI.Css.CssProperty.

override string [] PowerUI.Css.Properties.Content.GetProperties ( )
inlinevirtual

The set of all properties that this one will handle. Usually just one. e.g. "v-align", "vertical-align".

Reimplemented from PowerUI.Css.CssProperty.

void PowerUI.Css.Properties.Content.SetValue ( CssProperty  property,
ComputedStyle  style 
)
inlineprivate

Sets the named css property from the given style if the property exists in the style.

Parameters
propertyThe css property, e.g. color.
styleThe style to load value of the property from. This should be the computed style for the parent element.