com.aspose.cells

Class Border

  • java.lang.Object
    • com.aspose.cells.Border
public class Border 
extends java.lang.Object

Encapsulates the object that represents the cell border.

Example:

int styleIndex = workbook.getStyles().add();
Style style = workbook.getStyles().get(styleIndex);
//Set top border style and color
Border border = style.getBorders().getByBorderType(BorderType.TOP_BORDER);
border.setLineStyle(CellBorderType.MEDIUM);
border.setColor(Color.getRed());
cell.setStyle(style);

Property Getters/Setters Summary
intgetArgbColor()
void
setArgbColor(intvalue)
Gets and sets the color with a 32-bit ARGB value.
ColorgetColor()
void
setColor(Color value)
Gets or sets the com.aspose.cells.Color of the border.
intgetLineStyle()
void
setLineStyle(intvalue)
Gets or sets the cell border type. The value of the property is CellBorderType integer constant.
ThemeColorgetThemeColor()
void
Gets and sets the theme color of the border.
 

    • Property Getters/Setters Detail

      • getThemeColor/setThemeColor

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

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

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

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