Table of Contents

Class CssXmlElement

Namespace
SharpVectors.Dom.Css
Assembly
SharpVectors.Css.dll
public class CssXmlElement : Element, ICloneable, IEnumerable, IXPathNavigable, INode, IXmlNode, IEventTargetSupport, IEventTarget, IElementCssInlineStyle
Inheritance
CssXmlElement
Implements
Derived
Inherited Members

Constructors

CssXmlElement(string, string, string, CssXmlDocument)

Fields

_cachedCSD
_importDocument
_importNode
_isImported

Properties

Imported
OwnerDocument
Style

The style attribute

Methods

AttributeChange(object, XmlNodeChangedEventArgs)

Called when any attribute is changing. This is typically triggered by calls to setAttribute() and should only be called from the CssXmlDocument.

ChildNodeChange(object, XmlNodeChangedEventArgs)

Called when any child node is changing. If an element is moved the CSS heirarchy for that element will need to change. This is mainly useful when one of the child nodes parent is a referenced node (for example in a <use> element.

CssInvalidate()
ElementChange(object, XmlNodeChangedEventArgs)

Called when this element is changing in one of the following ways

FireAttributeChange(object, XmlNodeChangedEventArgs)
FireChildNodeChange(object, XmlNodeChangedEventArgs, bool)
FireCssChange()
FireElementChange(object, XmlNodeChangedEventArgs)
FireParentNodeChange(object, XmlNodeChangedEventArgs, bool)
GetComputedCssValue(string, string)
GetComputedStringValue(string, string)
GetComputedStyle(string)
HandleAttributeChange(XmlAttribute)

This function allows each element to handle it's own behaviors for attribute changing. By default, the cached computed style is invalidated because most attributes refer to style properties.

ParentNodeChange(object, XmlNodeChangedEventArgs)

Called when any parent element is changing. If an element is moved the CSS heirarchy for that element will need to change.

Supports(string, string)

Test if the DOM implementation implements a specific feature.

Events

attributeChangeHandler
childNodeChangeHandler
cssChangeHandler
elementChangeHandler
parentNodeChangeHandler