Свойство | Type | Description | |
---|---|---|---|
colorValue | RgbColor | ||
floatValue | double |
Méthode | Description | |
---|---|---|
GetAbsoluteValue ( string propertyName, |
||
GetCounterValue ( ) : SharpVectors.Dom.Css.ICounter |
This method is used to get the Counter value. If this CSS value doesn't contain a counter value, a DOMException is raised. Modification to the corresponding style property can be achieved using the Counter interface
|
|
GetFloatValue ( CssPrimitiveType unitType ) : double |
This method is used to get a float value in a specified unit. If this CSS value doesn't contain a float value or can't be converted into the specified unit, a DOMException is raised
|
|
GetRectValue ( ) : SharpVectors.Dom.Css.IRect |
This method is used to get the Rect value. If this CSS value doesn't contain a rect value, a DOMException is raised. Modification to the corresponding style property can be achieved using the Rect interface.
|
|
GetRgbColorValue ( ) : SharpVectors.Dom.Css.IRgbColor |
This method is used to get the RGB color. If this CSS value doesn't contain a RGB color value, a DOMException is raised. Modification to the corresponding style property can be achieved using the RGBColor interface.
|
|
GetStringValue ( ) : string |
This method is used to get the string value. If the CSS value doesn't contain a string value, a DOMException is raised. Note: Some properties (like 'font-family' or 'voice-family') convert a whitespace separated list of idents to a string.
|
|
SetFloatValue ( CssPrimitiveType unitType, double floatValue ) : void |
A method to set the float value with a specified unit. If the property attached with this value can not accept the specified unit or the float value, the value will be unchanged and a DOMException will be raised.
|
|
SetStringValue ( CssPrimitiveType stringType, string stringValue ) : void |
A method to set the string value with the specified unit. If the property attached to this value can't accept the specified unit or the string value, the value will be unchanged and a DOMException will be raised.
|
Méthode | Description | |
---|---|---|
CssPrimitiveValue ( ) : System |
Only for internal use
|
|
CssPrimitiveValue ( string cssText, bool readOnly ) : System | ||
_setCssText ( string cssText ) : void | ||
_setFloatValue ( double floatValue ) : void | ||
_setFloatValue ( string floatValue ) : void | ||
_setType ( CssPrimitiveType type ) : void |
Méthode | Description | |
---|---|---|
Create ( |
||
CssPrimitiveValue ( |
Constructor called by CssValue.GetCssValue()
|
protected CssPrimitiveValue ( string cssText, bool readOnly ) : System | ||
cssText | string | |
readOnly | bool | |
Résultat | System |
public GetAbsoluteValue ( string propertyName, |
||
propertyName | string | |
elm | ||
Résultat |
public GetCounterValue ( ) : SharpVectors.Dom.Css.ICounter | ||
Résultat | SharpVectors.Dom.Css.ICounter |
public GetFloatValue ( CssPrimitiveType unitType ) : double | ||
unitType | CssPrimitiveType | A unit code to get the float value. The unit code can only be a float unit type (i.e. CSS_NUMBER, CSS_PERCENTAGE, CSS_EMS, CSS_EXS, CSS_PX, CSS_CM, CSS_MM, CSS_IN, CSS_PT, CSS_PC, CSS_DEG, CSS_RAD, CSS_GRAD, CSS_MS, CSS_S, CSS_HZ, CSS_KHZ, CSS_DIMENSION). |
Résultat | double |
public GetRectValue ( ) : SharpVectors.Dom.Css.IRect | ||
Résultat | SharpVectors.Dom.Css.IRect |
public GetRgbColorValue ( ) : SharpVectors.Dom.Css.IRgbColor | ||
Résultat | SharpVectors.Dom.Css.IRgbColor |
public SetFloatValue ( CssPrimitiveType unitType, double floatValue ) : void | ||
unitType | CssPrimitiveType | A unit code as defined above. The unit code can only be a float unit type (i.e. CSS_NUMBER, CSS_PERCENTAGE, CSS_EMS, CSS_EXS, CSS_PX, CSS_CM, CSS_MM, CSS_IN, CSS_PT, CSS_PC, CSS_DEG, CSS_RAD, CSS_GRAD, CSS_MS, CSS_S, CSS_HZ, CSS_KHZ, CSS_DIMENSION). |
floatValue | double | The new float value. |
Résultat | void |
public SetStringValue ( CssPrimitiveType stringType, string stringValue ) : void | ||
stringType | CssPrimitiveType | A string code as defined above. The string code can only be a string unit type (i.e. CSS_STRING, CSS_URI, CSS_IDENT, and CSS_ATTR). |
stringValue | string | The new string value |
Résultat | void |
protected _setCssText ( string cssText ) : void | ||
cssText | string | |
Résultat | void |
protected _setFloatValue ( double floatValue ) : void | ||
floatValue | double | |
Résultat | void |
protected _setFloatValue ( string floatValue ) : void | ||
floatValue | string | |
Résultat | void |
protected _setType ( CssPrimitiveType type ) : void | ||
type | CssPrimitiveType | |
Résultat | void |