Constructor of cell.
Cell
Cell
(
Table &$table,
int $row,
int $column)
-
Table
&$table: Table
-
int
$row: Row number
-
int
$column: Column number
Overriden. Does nothing. Nesting cells are not suported in current version.
void
&addTable
([ $alignment = 'left'])
Redefinition of:
- Container::addTable()
- Adds table to element container.
Gets rtf code of Cell object. Internal use.
string
getContent
()
Redefinition of:
- Container::getContent()
- Gets rtf code of Container. Internal use.
Rotates cell.
void
rotate
([$direction $direction = 'right'])
-
$direction
$direction: Direction of rotation. Possible values:
'right' => right;
'left' => left.
Sets background color.
void
setBackGround
(string $backColor)
-
string
$backColor: Background color
Sets borders of element.
void
setBorders
(
&$borderFormat, [
boolean $left =
true], [
boolean $top =
true], [
boolean $right =
true], [
boolean $bottom =
true],
BorderFormat $borderFormat)
-
BorderFormat
$borderFormat
-
boolean
$left: If false, left border is not set (default true)
-
boolean
$top: If false, top border is not set (default true)
-
boolean
$right: If false, right border is not set (default true)
-
boolean
$bottom: If false, bottom border is not set (default true)
-
&$borderFormat
Sets alignment of empty cell. The method writeToCell overrides it with ParFormat alignment.
void
setDefaultAlignment
([string $alignment = 'left'])
-
string
$alignment: Alignment of cell. Possible values:
'left' => left alignment
'center' => center alignment
'right' => right alignment
'justify' => justify alignment
Sets font of empty cell. The method writeToCell overrides it with another Font.
void
setDefaultFont
($font &$font)
Sets vertical alignment of cell
void
setVerticalAlignment
([$verticalAlignment $verticalAlignment = 'top'])
-
$verticalAlignment
$verticalAlignment: Vertical alignment of cell (default top). Possible values:
'top' => top alignment;
'center' => center alignment;
'bottom' => bottom alignment.
Inherited Methods
Inherited From Container
Container::Container()
Container::addImage()
Container::addTable()
Container::emptyParagraph()
Container::getContent()
Container::writeHyperLink()
Container::writeRtfCode()
Container::writeText()