C# Class SharpVectors.Dom.Css.CssXmlElement

Inheritance: SharpVectors.Dom.Element, IElementCssInlineStyle
Afficher le fichier Open project: codebutler/savagesvg Class Usage Examples

Protected Properties

Свойство Type Description
cachedCSD ICssStyleDeclaration

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

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
Résultat void

ChildNodeChange() public méthode

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
Résultat void

CssInvalidate() public méthode

public CssInvalidate ( ) : void
Résultat void

CssXmlElement() protected méthode

protected CssXmlElement ( string prefix, string localname, string ns, CssXmlDocument doc ) : System
prefix string
localname string
ns string
doc CssXmlDocument
Résultat System

ElementChange() public méthode

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
Résultat void

FireAttributeChange() protected méthode

protected FireAttributeChange ( Object src, XmlNodeChangedEventArgs args ) : void
src Object
args System.Xml.XmlNodeChangedEventArgs
Résultat void

FireChildNodeChange() protected méthode

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

FireCssChange() protected méthode

protected FireCssChange ( ) : void
Résultat void

FireElementChange() protected méthode

protected FireElementChange ( Object src, XmlNodeChangedEventArgs args ) : void
src Object
args System.Xml.XmlNodeChangedEventArgs
Résultat void

FireParentNodeChange() protected méthode

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

GetComputedCssValue() public méthode

public GetComputedCssValue ( string propertyName, string pseudoElt ) : ICssValue
propertyName string
pseudoElt string
Résultat ICssValue

GetComputedStringValue() public méthode

public GetComputedStringValue ( string propertyName, string pseudoElt ) : string
propertyName string
pseudoElt string
Résultat string

GetComputedStyle() public méthode

public GetComputedStyle ( string pseudoElt ) : ICssStyleDeclaration
pseudoElt string
Résultat ICssStyleDeclaration

HandleAttributeChange() public méthode

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.
Résultat void

ParentNodeChange() public méthode

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
Résultat void

Supports() public méthode

public Supports ( string feature, string version ) : bool
feature string
version string
Résultat bool

Property Details

cachedCSD protected_oe property

protected ICssStyleDeclaration cachedCSD
Résultat ICssStyleDeclaration