Example:
$workbook = new cells\Workbook(); $worksheet = $workbook->getWorksheets()->get(0); $cell = $worksheet->getCells()->get(0, 0); $style = $cell->getStyle(); //Set top border style and color $border = $style->getBorders()->getByBorderType(cells\BorderType::BOTTOM_BORDER); $border->setLineStyle(cells\CellBorderType::MEDIUM); $border->setColor(cells\Color::getRed()); $cell->setStyle($style);
Property Getters/Setters Summary | ||
---|---|---|
function | getArgbColor() | |
function | setArgbColor(value) | |
Gets and sets the color with a 32-bit ARGB value. | ||
function | getColor() | |
function | setColor(value) | |
Gets or sets the |
||
function | getLineStyle() | |
function | setLineStyle(value) | |
Gets or sets the cell border type. The value of the property is CellBorderType integer constant. | ||
function | getThemeColor() | |
function | setThemeColor(value) | |
Gets and sets the theme color of the border. |
function getThemeColor() / function setThemeColor(value)
function getColor() / function setColor(value)
function getArgbColor() / function setArgbColor(value)
function getLineStyle() / function setLineStyle(value)