aspose.cells
Class Border

Encapsulates the object that represents the cell border.

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
functiongetArgbColor()
functionsetArgbColor(value)
           Gets and sets the color with a 32-bit ARGB value.
functiongetColor()
functionsetColor(value)
           Gets or sets the com.aspose.cells.Color of the border.
functiongetLineStyle()
functionsetLineStyle(value)
           Gets or sets the cell border type. The value of the property is CellBorderType integer constant.
functiongetThemeColor()
functionsetThemeColor(value)
           Gets and sets the theme color of the border.
 

Property Getters/Setters Detail

getThemeColor/setThemeColor : ThemeColor 

function getThemeColor() / function setThemeColor(value)
Gets and sets the theme color of the border.

getColor/setColor : Color 

function getColor() / function setColor(value)
Gets or sets the com.aspose.cells.Color of the border.

getArgbColor/setArgbColor : Number 

function getArgbColor() / function setArgbColor(value)
Gets and sets the color with a 32-bit ARGB value.

getLineStyle/setLineStyle : Number 

function getLineStyle() / function setLineStyle(value)
Gets or sets the cell border type. The value of the property is CellBorderType integer constant.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.