com.aspose.cells
Class Border

java.lang.Object
    extended by 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()
voidsetArgbColor(int value)
           Gets and sets the color with a 32-bit ARGB value.
ColorgetColor()
voidsetColor(Color value)
           Gets or sets the com.aspose.cells.Color of the border.
intgetLineStyle()
voidsetLineStyle(int value)
           Gets or sets the cell border type. The value of the property is CellBorderType integer constant.
ThemeColorgetThemeColor()
voidsetThemeColor(ThemeColor value)
           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.

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