Namespace SharpVectors.Dom.Css
The SharpVectors.Dom.Css namespace contains a bunch of classes and interfaces.
Classes
- CssCharsetRule
The CSSCharsetRule interface represents a @charset rule in a CSS style sheet. The value of the encoding attribute does not affect the encoding of text data in the DOM objects; this encoding is always UTF-16. After a stylesheet is loaded, the value of the encoding attribute is the value found in the @charset rule. If there was no @charset in the original document, then no CSSCharsetRule is created. The value of the encoding attribute may also be used as a hint for the encoding used on serialization of the style sheet. The value of the @charset rule (and therefore of the CSSCharsetRule) may not correspond to the encoding the document actually came in; character encoding information e.g. in an HTTP header, has priority (see CSS document representation) but this is not reflected in the CSSCharsetRule.
- CssCollectedProperty
Used internally to store collected properties.
- CssCollectedStyleDeclaration
Used internally for collection of styles for a specific element
- CssColor
The RGB-Color interface is used to represent any RGB color value.
- CssFontFaceRule
The ICssFontFaceRule interface represents a
@font-facerule in a CSS style sheet. The@font-facerule is used to hold a set of font descriptions.
- CssImportRule
The CSSImportRule interface represents a @import rule within a CSS style sheet. The @import rule is used to import style rules from other style sheets.
- CssMediaRule
The CSSMediaRule interface represents a @media rule in a CSS style sheet. A @media rule can be used to delimit style rules for specific media types.
- CssPageRule
The CSSPageRule interface represents a @page rule within a CSS style sheet. The @page rule is used to specify the dimensions, orientation, margins, etc. of a page box for paged media.
- CssPrimitiveValue
This implements the ICssPrimitiveValue interface which represents a single CSS value.
- CssRect
The Rect interface is used to represent any rect value. This interface reflects the values in the underlying style property. Hence, modifications made to the CSSPrimitiveValue objects modify the style property.
- CssRuleList
The CSSRuleList interface provides the abstraction of an ordered collection of CSS rules. The items in the CSSRuleList are accessible via an integral index, starting from 0.
- CssStyleDeclaration
The ICssStyleDeclaration interface represents a single CSS declaration block. This interface may be used to determine the style properties currently set in a block or to set style properties explicitly within the block.
While an implementation may not recognize all CSS properties within a CSS declaration block, it is expected to provide access to all specified properties in the style sheet through the ICssStyleDeclaration interface. Furthermore, implementations that support a specific level of CSS should correctly handle CSS shorthand properties for that level. For a further discussion of shorthand properties, see the CSS2Properties interface.
This interface is also used to provide a read-only access to the computed values of an element. See also the ViewCSS interface.
Note: The CSS Object Model doesn't provide an access to the specified or actual values of the CSS cascade
- CssStyleRule
The CSSStyleRule interface represents a single rule set in a CSS style sheet.
- CssStyleSheet
The ICssStyleSheet interface is a concrete interface used to represent a CSS style sheet i.e., a style sheet whose content type is "text/css".
- CssUnknownRule
The CSSUnknownRule interface represents an at-rule not supported by this user agent.
- CssValue
This implements the ICssValue interface, which represents a simple or a complex value. A ICssValue object only occurs in a context of a CSS property.
- CssXmlDocument
A XmlDocument with CSS support
- StaticSection
Creates a static section for a CssXmlDocument. Typical use: using(StaticSection.Use(doc)) { // blah blah }
Interfaces
- ICssCharsetRule
The
ICssCharsetRuleinterface represents a@charsetrule in a CSS style sheet. The value of the encoding attribute does not affect the encoding of text data in the DOM objects; this encoding is always UTF-16. After a stylesheet is loaded, the value of the encoding attribute is the value found in the@charsetrule. If there was no@charsetin the original document, then noICssCharsetRuleis created. The value of the encoding attribute may also be used as a hint for the encoding used on serialization of the style sheet.
- ICssColor
The RGB-Color interface is used to represent any RGB color value. This interface reflects the values in the underlying style property. Hence, modifications made to the ICssPrimitiveValue objects modify the style property.
- ICssCounter
The Counter interface is used to represent any counter or counters function value. This interface reflects the values in the underlying style property.
- ICssFontFaceRule
The
ICssFontFaceRuleinterface represents a@font-facerule in a CSS style sheet. The@font-facerule is used to hold a set of font descriptions.
- ICssImportRule
The
ICssImportRuleinterface represents a@importrule within a CSS style sheet. The@importrule is used to import style rules from other style sheets.
- ICssMediaRule
The
ICssMediaRuleinterface represents a@mediarule in a CSS style sheet. A@mediarule can be used to delimit style rules for specific media types
- ICssPageRule
The
ICssPageRuleinterface represents a@pagerule within a CSS style sheet. The@pagerule is used to specify the dimensions, orientation, margins, etc. of a page box for paged media.
- ICssPrimitiveValue
The
ICssPrimitiveValueinterface represents a single CSS value.
- ICssRect
The
ICssRectinterface is used to represent any rect value. This interface reflects the values in the underlying style property. Hence, modifications made to the ICssPrimitiveValue objects modify the style property.
- ICssRule
The
ICssRuleinterface is the abstract base interface for any type of CSS statement. This includes both rule sets and at-rules. An implementation is expected to preserve all rules specified in a CSS style sheet, even if the rule is not recognized by the parser. Unrecognized rules are represented using the ICssUnknownRule interface.
- ICssRuleList
The
ICssRuleListinterface provides the abstraction of an ordered collection of CSS rules.
- ICssStyleDeclaration
The
ICssStyleDeclarationinterface represents a single CSS declaration block.
- ICssStyleRule
The
ICssStyleRuleinterface represents a single rule set in a CSS style sheet.
- ICssStyleSheet
The
ICssStyleSheetinterface is a concrete interface used to represent a CSS style sheet i.e., a style sheet whose content type istext/css.
- ICssUnknownRule
The
ICssUnknownRuleinterface represents an at-rule not supported by this user agent.
- ICssValue
The
ICssValueinterface represents the current computed value of a CSS property.
- ICssValueList
The
ICssValueListinterface provides the abstraction of an ordered collection of CSS values.
- ICssView
This interface represents a CSS view. The GetComputedStyle(XmlElement, string) method provides a read only access to the computed values of an element.
- IDocumentCss
This interface represents a document with a CSS view.
- IDomImplementationCss
This interface allows the DOM user to create a ICssStyleSheet outside the context of a document. There is no way to associate the new ICssStyleSheet with a document in DOM Level 2.
- IElementCssInlineStyle
Inline style information attached to elements is exposed through the style attribute.
Enums
- CssPrimitiveType
The
CssPrimitiveTypeenumeration contains the list of possible primitive value types in CSS. This class is an extension of the CSS spec. The CSS spec has a list of constants instead of an enum class.
- CssRuleType
The
CssRuleTypeEnum contains the possible Rule Type Values. This is an extension of the CSS specification. The spec contains only a list of contstant in the ICssRule interface.
- CssStyleSheetType
The different types of CssStyleSheets
- CssValueType
The
CssValueTypeEnum contains the possible CSS Value Types. This is an extension to the CSS specification. The specification has a list of constants defined within the ICssValue Interface