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:

Style style = cell.getStyle();
//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.
com.aspose.cells.ColorgetColor()
void
setColor(com.aspose.cells.Colorvalue)
           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 com.aspose.cells.Color getColor() / public void setColor(com.aspose.cells.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.

    setThemeColor

    public voidsetThemeColor(ThemeColor value)
    
    Gets and sets the theme color of the border.

    setColor

    public voidsetColor(com.aspose.cells.Colorvalue)
    
    Gets or sets the com.aspose.cells.Color of the border.

    setArgbColor

    public voidsetArgbColor(intvalue)
    
    Gets and sets the color with a 32-bit ARGB value.

    setLineStyle

    public voidsetLineStyle(intvalue)
    
    Gets or sets the cell border type. The value of the property is CellBorderType integer constant.