\section{DOM::CSS2Border\-Spacing Class Reference}
\label{classDOM_1_1CSS2BorderSpacing}\index{DOM::CSS2BorderSpacing@{DOM::CSS2BorderSpacing}}
The {\tt {\bf CSS2Border\-Spacing}{\rm (p.\,\pageref{classDOM_1_1CSS2BorderSpacing})}} interface represents the {\tt border-spacing } CSS Level 2 property.  


{\tt \#include $<$css\_\-extensions.h$>$}

Inheritance diagram for DOM::CSS2Border\-Spacing:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=86pt]{classDOM_1_1CSS2BorderSpacing__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for DOM::CSS2Border\-Spacing:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=86pt]{classDOM_1_1CSS2BorderSpacing__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf CSS2Border\-Spacing} (const {\bf CSS2Border\-Spacing} \&other)\label{classDOM_1_1CSS2BorderSpacing_a1}

\item 
{\bf CSS2Border\-Spacing} (CSS2Border\-Spacing\-Impl $\ast$impl)\label{classDOM_1_1CSS2BorderSpacing_a2}

\item 
{\bf CSS2Border\-Spacing} \& {\bf operator=} (const {\bf CSS2Border\-Spacing} \&other)\label{classDOM_1_1CSS2BorderSpacing_a3}

\item 
unsigned short {\bf horizontal\-Type} () const 
\item 
unsigned short {\bf vertical\-Type} () const 
\item 
float {\bf get\-Horizontal\-Spacing} (const float horizontal\-Type)
\item 
float {\bf get\-Vertical\-Spacing} (const float vertical\-Type)
\item 
void {\bf set\-Horizontal\-Spacing} (const unsigned short horizontal\-Type, const float value)
\item 
void {\bf set\-Vertical\-Spacing} (const unsigned short vertical\-Type, const float value)
\item 
void {\bf set\-Inherit} ()
\end{CompactItemize}


\subsection{Detailed Description}
The {\tt {\bf CSS2Border\-Spacing}{\rm (p.\,\pageref{classDOM_1_1CSS2BorderSpacing})}} interface represents the {\tt border-spacing } CSS Level 2 property. 



Definition at line 317 of file css\_\-extensions.h.

\subsection{Member Function Documentation}
\index{DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}!horizontalType@{horizontalType}}
\index{horizontalType@{horizontalType}!DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned short CSS2Border\-Spacing::horizontal\-Type () const}\label{classDOM_1_1CSS2BorderSpacing_a5}


The A code defining the type of the value as defined in {\tt {\bf CSSValue}{\rm (p.\,\pageref{classDOM_1_1CSSValue})}} . 

It would be one of {\tt CSS\_\-EMS} , {\tt CSS\_\-EXS} , {\tt CSS\_\-PX} , {\tt CSS\_\-CM} , {\tt CSS\_\-MM} , {\tt CSS\_\-IN} , {\tt CSS\_\-PT} , {\tt CSS\_\-PC} or {\tt CSS\_\-INHERIT} . 

Definition at line 190 of file css\_\-extensions.cpp.\index{DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}!verticalType@{verticalType}}
\index{verticalType@{verticalType}!DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned short CSS2Border\-Spacing::vertical\-Type () const}\label{classDOM_1_1CSS2BorderSpacing_a6}


The A code defining the type of the value as defined in {\tt {\bf CSSValue}{\rm (p.\,\pageref{classDOM_1_1CSSValue})}} . 

It would be one of {\tt CSS\_\-EMS} , {\tt CSS\_\-EXS} , {\tt CSS\_\-PX} , {\tt CSS\_\-CM} , {\tt CSS\_\-MM} , {\tt CSS\_\-IN} , {\tt CSS\_\-PT} , {\tt CSS\_\-PC} or {\tt CSS\_\-INHERIT} . 

Definition at line 196 of file css\_\-extensions.cpp.\index{DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}!getHorizontalSpacing@{getHorizontalSpacing}}
\index{getHorizontalSpacing@{getHorizontalSpacing}!DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}float CSS2Border\-Spacing::get\-Horizontal\-Spacing (const float {\em horizontal\-Type})}\label{classDOM_1_1CSS2BorderSpacing_a7}


This method is used to get the float value in a specified unit if the {\tt horizontal\-Spacing} represents a length. 

If the float doesn't contain a float value or can't be converted into the specified unit, a {\tt {\bf DOMException}{\rm (p.\,\pageref{classDOM_1_1DOMException})}} is raised.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em horizontal\-Type}]The specified unit.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The float value.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-ACCESS\_\-ERR: Raises if the property doesn't contain a float or the value can't be converted. \end{description}
\end{Desc}


Definition at line 202 of file css\_\-extensions.cpp.\index{DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}!getVerticalSpacing@{getVerticalSpacing}}
\index{getVerticalSpacing@{getVerticalSpacing}!DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}float CSS2Border\-Spacing::get\-Vertical\-Spacing (const float {\em vertical\-Type})}\label{classDOM_1_1CSS2BorderSpacing_a8}


This method is used to get the float value in a specified unit if the {\tt vertical\-Spacing} represents a length. 

If the float doesn't contain a float value or can't be converted into the specified unit, a {\tt {\bf DOMException}{\rm (p.\,\pageref{classDOM_1_1DOMException})}} is raised. The value is {\tt 0} if only the horizontal value has been specified.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vertical\-Type}]The specified unit.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The float value.\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-ACCESS\_\-ERR: Raises if the property doesn't contain a float or the value can't be converted. \end{description}
\end{Desc}


Definition at line 208 of file css\_\-extensions.cpp.\index{DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}!setHorizontalSpacing@{setHorizontalSpacing}}
\index{setHorizontalSpacing@{setHorizontalSpacing}!DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CSS2Border\-Spacing::set\-Horizontal\-Spacing (const unsigned short {\em horizontal\-Type}, const float {\em value})}\label{classDOM_1_1CSS2BorderSpacing_a9}


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 {\tt 0} .

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em horizontal\-Type}]The specified unit.\item[{\em value}]The new value.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-ACCESS\_\-ERR: Raises if the specified unit is not a length.\end{description}
\end{Desc}
NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR: Raises if this property is readonly. 

Definition at line 214 of file css\_\-extensions.cpp.\index{DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}!setVerticalSpacing@{setVerticalSpacing}}
\index{setVerticalSpacing@{setVerticalSpacing}!DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CSS2Border\-Spacing::set\-Vertical\-Spacing (const unsigned short {\em vertical\-Type}, const float {\em value})}\label{classDOM_1_1CSS2BorderSpacing_a10}


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 {\tt 0} .

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em vertical\-Type}]The specified unit.\item[{\em value}]The new value.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]\end{Desc}
\begin{Desc}
\item[Exceptions:]
\begin{description}
\item[{\em DOMException}]INVALID\_\-ACCESS\_\-ERR: Raises if the specified unit is not a length or a percentage.\end{description}
\end{Desc}
NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR: Raises if this property is readonly. 

Definition at line 220 of file css\_\-extensions.cpp.\index{DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}!setInherit@{setInherit}}
\index{setInherit@{setInherit}!DOM::CSS2BorderSpacing@{DOM::CSS2Border\-Spacing}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void CSS2Border\-Spacing::set\-Inherit ()}\label{classDOM_1_1CSS2BorderSpacing_a11}


Set this property as inherit. 

{\tt horizontal\-Type} and {\tt vertical\-Type} will be inherited.

\begin{Desc}
\item[Returns:]\end{Desc}


Definition at line 226 of file css\_\-extensions.cpp.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
css\_\-extensions.h\item 
css\_\-extensions.cpp\end{CompactItemize}
