C# Class SharpVectors.Dom.Css.CssCollectedStyleDeclaration

Used internally for collection of styles for a specific element
Inheritance: CssStyleDeclaration
显示文件 Open project: codebutler/savagesvg Class Usage Examples

Public Methods

Method Description
CollectProperty ( string name, int specificity, CssValue cssValue, CssStyleSheetType origin, string priority ) : void
CssCollectedStyleDeclaration ( XmlElement elm ) : System
GetPropertyCssValue ( string propertyName ) : ICssValue
GetPropertyOrigin ( string propertyName ) : CssStyleSheetType

Returns the origin type of the collected property

GetPropertyPriority ( string propertyName ) : string

Used to retrieve the priority of a CSS property (e.g. the "important" qualifier) if the property has been explicitly set in this declaration block.

GetPropertyValue ( string propertyName ) : string

Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block.

this ( ulong index ) : string

Used to retrieve the properties that have been explicitly set in this declaration block. The order of the properties retrieved using this method does not have to be the order in which they were set. This method can be used to iterate over all properties in this declaration block. The name of the property at this ordinal position. The empty string if no property exists at this position.

Private Methods

Method Description
getParentStyle ( string propertyName ) : ICssValue

Method Details

CollectProperty() public method

public CollectProperty ( string name, int specificity, CssValue cssValue, CssStyleSheetType origin, string priority ) : void
name string
specificity int
cssValue CssValue
origin CssStyleSheetType
priority string
return void

CssCollectedStyleDeclaration() public method

public CssCollectedStyleDeclaration ( XmlElement elm ) : System
elm System.Xml.XmlElement
return System

GetPropertyCssValue() public method

public GetPropertyCssValue ( string propertyName ) : ICssValue
propertyName string
return ICssValue

GetPropertyOrigin() public method

Returns the origin type of the collected property
public GetPropertyOrigin ( string propertyName ) : CssStyleSheetType
propertyName string The name of the property
return CssStyleSheetType

GetPropertyPriority() public method

Used to retrieve the priority of a CSS property (e.g. the "important" qualifier) if the property has been explicitly set in this declaration block.
public GetPropertyPriority ( string propertyName ) : string
propertyName string The name of the CSS property. See the CSS property index.
return string

GetPropertyValue() public method

Used to retrieve the value of a CSS property if it has been explicitly set within this declaration block.
public GetPropertyValue ( string propertyName ) : string
propertyName string The name of the CSS property. See the CSS property index.
return string

this() public method

Used to retrieve the properties that have been explicitly set in this declaration block. The order of the properties retrieved using this method does not have to be the order in which they were set. This method can be used to iterate over all properties in this declaration block. The name of the property at this ordinal position. The empty string if no property exists at this position.
public this ( ulong index ) : string
index ulong
return string