aspose.cells

Class Border

Encapsulates the object that represents the cell border.

Example:

var workbook = new aspose.cells.Workbook();
var worksheet = workbook.getWorksheets().get(0);
var cell = worksheet.getCells().get(0, 0);
var styleIndex = workbook.getStyles().add();
var style = workbook.getStyles().get(styleIndex);
//Set top border style and color
var border = style.getBorders().getByBorderType(aspose.cells.BorderType.TOP_BORDER);
border.setLineStyle(aspose.cells.CellBorderType.MEDIUM);
border.setColor(aspose.cells.Color.getRed());
cell.setStyle(style);

Property Getters/Setters Summary
functiongetArgbColor()
function
           Gets and sets the color with a 32-bit ARGB value.
functiongetColor()
function
setColor(value)
           Gets or sets the com.aspose.cells.Color of the border.
functiongetLineStyle()
function
           Gets or sets the cell border type. The value of the property is CellBorderType integer constant.
functiongetThemeColor()
function
           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.