C# Class SharpVectors.Dom.Css.CssXmlElement

Inheritance: SharpVectors.Dom.Element, IElementCssInlineStyle
Exibir arquivo Open project: codebutler/savagesvg Class Usage Examples

Protected Properties

Property Type Description
cachedCSD ICssStyleDeclaration

Public Methods

Method Description
AttributeChange ( Object src, XmlNodeChangedEventArgs args ) : void

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

ChildNodeChange ( Object src, XmlNodeChangedEventArgs args ) : void

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 ( ) : void
ElementChange ( Object src, XmlNodeChangedEventArgs args ) : void

Called when this element is changing in one of the following ways Text child added/removed/changed Element moved in the tree

GetComputedCssValue ( string propertyName, string pseudoElt ) : ICssValue
GetComputedStringValue ( string propertyName, string pseudoElt ) : string
GetComputedStyle ( string pseudoElt ) : ICssStyleDeclaration
HandleAttributeChange ( XmlAttribute attribute ) : void

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 src, XmlNodeChangedEventArgs args ) : void

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

Supports ( string feature, string version ) : bool

Protected Methods

Method Description
CssXmlElement ( string prefix, string localname, string ns, CssXmlDocument doc ) : System
FireAttributeChange ( Object src, XmlNodeChangedEventArgs args ) : void
FireChildNodeChange ( Object src, XmlNodeChangedEventArgs args, bool fireEvent ) : void
FireCssChange ( ) : void
FireElementChange ( Object src, XmlNodeChangedEventArgs args ) : void
FireParentNodeChange ( Object src, XmlNodeChangedEventArgs args, bool fireEvent ) : void

Method Details

AttributeChange() public method

Called when any attribute is changing. This is typically triggered by calls to setAttribute() and should only be called from the CssXmlDocument.
public AttributeChange ( Object src, XmlNodeChangedEventArgs args ) : void
src Object
args System.Xml.XmlNodeChangedEventArgs
return void

ChildNodeChange() public method

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.
public ChildNodeChange ( Object src, XmlNodeChangedEventArgs args ) : void
src Object
args System.Xml.XmlNodeChangedEventArgs
return void

CssInvalidate() public method

public CssInvalidate ( ) : void
return void

CssXmlElement() protected method

protected CssXmlElement ( string prefix, string localname, string ns, CssXmlDocument doc ) : System
prefix string
localname string
ns string
doc CssXmlDocument
return System

ElementChange() public method

Called when this element is changing in one of the following ways Text child added/removed/changed Element moved in the tree
public ElementChange ( Object src, XmlNodeChangedEventArgs args ) : void
src Object
args System.Xml.XmlNodeChangedEventArgs
return void

FireAttributeChange() protected method

protected FireAttributeChange ( Object src, XmlNodeChangedEventArgs args ) : void
src Object
args System.Xml.XmlNodeChangedEventArgs
return void

FireChildNodeChange() protected method

protected FireChildNodeChange ( Object src, XmlNodeChangedEventArgs args, bool fireEvent ) : void
src Object
args System.Xml.XmlNodeChangedEventArgs
fireEvent bool
return void

FireCssChange() protected method

protected FireCssChange ( ) : void
return void

FireElementChange() protected method

protected FireElementChange ( Object src, XmlNodeChangedEventArgs args ) : void
src Object
args System.Xml.XmlNodeChangedEventArgs
return void

FireParentNodeChange() protected method

protected FireParentNodeChange ( Object src, XmlNodeChangedEventArgs args, bool fireEvent ) : void
src Object
args System.Xml.XmlNodeChangedEventArgs
fireEvent bool
return void

GetComputedCssValue() public method

public GetComputedCssValue ( string propertyName, string pseudoElt ) : ICssValue
propertyName string
pseudoElt string
return ICssValue

GetComputedStringValue() public method

public GetComputedStringValue ( string propertyName, string pseudoElt ) : string
propertyName string
pseudoElt string
return string

GetComputedStyle() public method

public GetComputedStyle ( string pseudoElt ) : ICssStyleDeclaration
pseudoElt string
return ICssStyleDeclaration

HandleAttributeChange() public method

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.
public HandleAttributeChange ( XmlAttribute attribute ) : void
attribute System.Xml.XmlAttribute The attribute that is changing.
return void

ParentNodeChange() public method

Called when any parent element is changing. If an element is moved the CSS heirarchy for that element will need to change.
public ParentNodeChange ( Object src, XmlNodeChangedEventArgs args ) : void
src Object
args System.Xml.XmlNodeChangedEventArgs
return void

Supports() public method

public Supports ( string feature, string version ) : bool
feature string
version string
return bool

Property Details

cachedCSD protected_oe property

protected ICssStyleDeclaration cachedCSD
return ICssStyleDeclaration