Метод | Описание | |
---|---|---|
CssStyleDeclaration ( string &css, |
The constructor for CssStyleDeclaration
|
|
GetPropertyCssValue ( string propertyName ) : ICssValue |
Used to retrieve the object representation of the value of a CSS property if it has been explicitly set within this declaration block. This method returns null if the property is a shorthand property. Shorthand property values can only be accessed and modified as strings, using the getPropertyValue and setProperty methods.
|
|
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.
|
|
RemoveProperty ( string propertyName ) : string |
Used to remove a CSS property if it has been explicitly set within this declaration block.
|
|
SetProperty ( string propertyName, string value, string priority ) : void |
Used to set a property value and priority 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.
|
Метод | Описание | |
---|---|---|
CssStyleDeclaration ( ) : System |
The constructor used internally when collecting styles for a specified element
|
|
GetStylesForElement ( |
Used to find matching style rules in the cascading order
|
|
parseString ( string cssText ) : string |
public CssStyleDeclaration ( string &css, |
||
css | string | The string to parse for CSS |
parentRule | The parent rule or parent stylesheet | |
readOnly | bool | True if this instance is readonly |
origin | CssStyleSheetType | The type of CssStyleSheet |
Результат | System |
public GetPropertyCssValue ( string propertyName ) : ICssValue | ||
propertyName | string | The name of the CSS property. See the CSS property index. |
Результат | ICssValue |
public GetPropertyPriority ( string propertyName ) : string | ||
propertyName | string | The name of the CSS property. See the CSS property index. |
Результат | string |
public GetPropertyValue ( string propertyName ) : string | ||
propertyName | string | The name of the CSS property. See the CSS property index. |
Результат | string |
public RemoveProperty ( string propertyName ) : string | ||
propertyName | string | The name of the CSS property. See the CSS property index. |
Результат | string |
public SetProperty ( string propertyName, string value, string priority ) : void | ||
propertyName | string | The name of the CSS property. See the CSS property index. |
value | string | The new value of the property. |
priority | string | The new priority of the property (e.g. "important"). |
Результат | void |