[]
CSSDeclaration represents the declaration block of a CSS rule.
Provides a programmatic interface directly to the CSS declarations.
public class CSSDeclaration
Use the publicly accessable m_pXxxx structs to retrieve known property values.
Unknown properties and their text values are available in the publicly accessable m_unknownPropTable variable.
Use AppendValue to append values to this CSSDeclaration.
Name | Description |
---|---|
CSSDeclaration() | The default constructor for CSSDeclaration. |
Name | Description |
---|---|
m_pAural | Gets any text aural declarations in this CSSDeclaration. |
m_pBreaks | Gets any text breaks declarations in this CSSDeclaration. |
m_pColor | Gets any color related declarations in this CSSDeclaration. |
m_pContent | Gets any text content declarations in this CSSDeclaration. |
m_pDisplay | Gets any text display declarations in this CSSDeclaration. |
m_pFont | Gets any font property declarations in this CSSDeclaration. |
m_pLine | Gets any text line declarations in this CSSDeclaration. |
m_pList | Gets any text list declarations in this CSSDeclaration. |
m_pMargin | Gets any text margin declarations in this CSSDeclaration. |
m_pMisc | Gets any text misc declarations in this CSSDeclaration. |
m_pPage | Gets any text page declarations in this CSSDeclaration. |
m_pPosition | Gets any text positional declarations (spacing, decoration, alignment) in this CSSDeclaration. |
m_pTable | Gets any text table declarations in this CSSDeclaration. |
m_pText | Gets any text related declarations (spacing, decoration, alignment) in this CSSDeclaration. |
m_pUserInterface | Gets any text user interface declarations in this CSSDeclaration. |
m_unknownPropTable | The unknown property table |
Name | Description |
---|---|
AppendUnknownValue(string, string) | Used to append unknown properties to this declaration. The unknown name and value will be used only when rebuilding the CSS string again. |
AppendValue(eCSSProperty, CSSValue) | Adds the specified value for the specified property to this CSSDeclaration. |
Clone(ref CSSDeclaration) | Creates copy of this instance and places it in the specified variable. |
Count() | Returns the number of declarations stored by this CSSDeclaration instance (that were added with AppendValue). |
GetImportantValues(ref CSSDeclaration) | Returns all of the property/values in this CSSDeclaration instance that were marked with the !important declaration. |
GetProperty(int) | Returns the eCSSProperty at the specified index in the property order array. |
GetValue(eCSSProperty) | Returns the value of the specified property as a CSSValue object. |
GetValue(eCSSProperty, ref string) | Retrieves the value for the specified CSS property from this declaration instance and places the value into sValue. |
GetValueIsImportant(eCSSProperty, ref bool) | Determines if the specified property stored in this CSSDeclaration instance was marked with the !important declaration. |
GetValueIsImportant(string, ref bool) | Determines if the specified property stored in this CSSDeclaration instance was marked with the !important declaration. |
Reset() | Resets all CSSValues contained in this declaration. |
SetValueImportant(eCSSProperty) | Sets the value important. |
ToString() | Returns the propery/value pair(s) contained in this CSSDeclaration in standards based CSS declaration block syntax. |