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 |
com.aspose.cells.Color | getColor() | |
void | setColor(com.aspose.cells.Color value) | |
|
Gets or sets the com.aspose.cells.Color of the border.
|
int | getLineStyle() | |
void | setLineStyle(int value) | |
|
Gets or sets the cell border type.
The value of the property is CellBorderType integer constant. |
Property Getters/Setters Detail |
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.
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.