class CSS2BorderSpacing

The <code> CSS2BorderSpacing </code> interface represents the <a href="http://www. More...

Full nameDOM::CSS2BorderSpacing
Definition#include <css_extensions.h>
InheritsDOM::CSSValue
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

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.

unsigned short  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 ()

[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 )

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:
horizontalTypeThe 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 )

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:
verticalTypeThe 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 )

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:
horizontalTypeThe specified unit.
valueThe 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 )

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:
verticalTypeThe specified unit.
valueThe new value.

Throws: DOMException, INVALID_ACCESS_ERR:, Raises, if, the, specified, unit, is, not, a, length, or, a, percentage.

void  setInherit () ( )

Set this property as inherit. <code> horizontalType </code> and <code> verticalType </code> will be inherited.

Returns:


Generated by: ssk@tauon.ph.unimelb.EDU.AU on Wed May 23 05:55:52 2001, using kdoc 2.0a35.