class CSS2BorderSpacing

The CSS2BorderSpacing interface represents the More...

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

Public Methods


Detailed Description

The CSS2BorderSpacing interface represents the border-spacing 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 CSSValue . It would be one of CSS_EMS , CSS_EXS , CSS_PX , CSS_CM , CSS_MM , CSS_IN , CSS_PT , CSS_PC or CSS_INHERIT .

unsigned short  verticalType ()

verticalType

[const]

The A code defining the type of the value as defined in CSSValue . It would be one of CSS_EMS , CSS_EXS , CSS_PX , CSS_CM , CSS_MM , CSS_IN , CSS_PT , CSS_PC or CSS_INHERIT .

float  getHorizontalSpacing ( const float horizontalType )

getHorizontalSpacing

This method is used to get the float value in a specified unit if the horizontalSpacing represents a length. If the float doesn't contain a float value or can't be converted into the specified unit, a DOMException 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 )

getVerticalSpacing

This method is used to get the float value in a specified unit if the verticalSpacing represents a length. If the float doesn't contain a float value or can't be converted into the specified unit, a DOMException is raised. The value is 0 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 )

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 0 .

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 )

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 0 .

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

setInherit

Set this property as inherit. horizontalType and verticalType will be inherited.

Returns:


Generated by: dfaure on faure on Tue Apr 16 08:50:42 2002, using kdoc 2.0a53.