asposecells.api

Class Border

Encapsulates the object that represents the cell border.

Example:

workbook = Workbook()
worksheet = workbook.getWorksheets().get(0)
cell = worksheet.getCells().get(0, 0)
style = workbook.createStyle()
# Set top border style and color
border = style.getBorders().getByBorderType(BorderType.TOP_BORDER)
border.setLineStyle(CellBorderType.MEDIUM)
border.setColor(Color.getRed())
cell.setStyle(style)

Property Getters/Setters Summary
methodgetArgbColor()
method
           Gets and sets the color with a 32-bit ARGB value.
methodgetColor()
method
setColor(value)
           Gets or sets the com.aspose.cells.Color of the border.
methodgetLineStyle()
method
           Gets or sets the cell border type. The value of the property is CellBorderType integer constant.
methodgetThemeColor()
method
           Gets and sets the theme color of the border.
 

    • Property Getters/Setters Detail

      • getThemeColor/setThemeColor : ThemeColor 

        ThemeColor getThemeColor() / setThemeColor(value)
        
        Gets and sets the theme color of the border.
      • getColor/setColor : Color 

        Color getColor() / setColor(value)
        
        Gets or sets the com.aspose.cells.Color of the border.
      • getArgbColor/setArgbColor : int 

        int getArgbColor() / setArgbColor(value)
        
        Gets and sets the color with a 32-bit ARGB value.
      • getLineStyle/setLineStyle : int 

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