|
|
The <code> CSS2BorderSpacing </code> interface represents the <a href="http://www.w3.org/TR/REC-CSS2/tables.html#propdef-border-spacing"> border-spacing </a> CSS Level 2 property.
CSS2BorderSpacing ()
| CSS2BorderSpacing |
CSS2BorderSpacing (const CSS2BorderSpacing &other)
| CSS2BorderSpacing |
CSS2BorderSpacing (CSS2BorderSpacingImpl *impl)
| CSS2BorderSpacing |
CSS2BorderSpacing & operator = (const CSS2BorderSpacing &other)
| operator = |
Reimplemented from CSSValue.
~CSS2BorderSpacing ()
| ~CSS2BorderSpacing |
unsigned short horizontalType ()
| horizontalType |
[const]
The A code defining the type of the value as defined in <code> CSSValue </code> . It would be one of <code> CSS_EMS </code> , <code> CSS_EXS </code> , <code> CSS_PX </code> , <code> CSS_CM </code> , <code> CSS_MM </code> , <code> CSS_IN </code> , <code> CSS_PT </code> , <code> CSS_PC </code> or <code> CSS_INHERIT </code> .
unsigned short verticalType ()
| verticalType |
[const]
The A code defining the type of the value as defined in <code> CSSValue </code> . It would be one of <code> CSS_EMS </code> , <code> CSS_EXS </code> , <code> CSS_PX </code> , <code> CSS_CM </code> , <code> CSS_MM </code> , <code> CSS_IN </code> , <code> CSS_PT </code> , <code> CSS_PC </code> or <code> CSS_INHERIT </code> .
float getHorizontalSpacing ( const float horizontalType )
| getHorizontalSpacing |
This method is used to get the float value in a specified unit if the <code> horizontalSpacing </code> represents a length. If the float doesn't contain a float value or can't be converted into the specified unit, a <code> DOMException </code> is raised.
Parameters:
horizontalType | The specified unit. |
Returns: The float value.
Throws: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, property, doesn't, contain, a, float, or, the, value, can't, be, converted.
float getVerticalSpacing ( const float verticalType )
| getVerticalSpacing |
This method is used to get the float value in a specified unit if the <code> verticalSpacing </code> represents a length. If the float doesn't contain a float value or can't be converted into the specified unit, a <code> DOMException </code> is raised. The value is <code> 0 </code> if only the horizontal value has been specified.
Parameters:
verticalType | The specified unit. |
Returns: The float value.
Throws: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, property, doesn't, contain, a, float, or, the, value, can't, be, converted.
void setHorizontalSpacing ( const unsigned short horizontalType, const float value )
| setHorizontalSpacing |
This method is used to set the horizontal spacing with a specified unit. If the vertical value is a length, it sets the vertical spacing to <code> 0 </code> .
NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly.
Parameters:
horizontalType | The specified unit. |
value | The new value. |
Throws: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, specified, unit, is, not, a, length.
void setVerticalSpacing ( const unsigned short verticalType, const float value )
| setVerticalSpacing |
This method is used to set the vertical spacing with a specified unit. If the horizontal value is not a length, it sets the vertical spacing to <code> 0 </code> .
NO_MODIFICATION_ALLOWED_ERR: Raises if this property is readonly.
Parameters:
verticalType | The specified unit. |
value | The new value. |
Throws: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, specified, unit, is, not, a, length, or, a, percentage.
Generated by: root@daffy.perf.redhat.com on Mon Jul 14 13:28:10 2003, using kdoc 2.0a53. |