java.lang.Object
com.aspose.words.BorderType
public class BorderType
- extends java.lang.Object
Utility class containing constants.
Specifies sides of a border.
Example:
Inserts a paragraph with a top border.
DocumentBuilder builder = new DocumentBuilder();
Border topBorder = builder.getParagraphFormat().getBorders().getByBorderType(BorderType.TOP);
topBorder.setColor(Color.RED);
topBorder.setLineStyle(LineStyle.DASH_SMALL_GAP);
topBorder.setLineWidth(4);
builder.writeln("Hello World!");
Field Summary |
static final int | NONE = -1 | |
Default value.
|
static final int | BOTTOM = 0 | |
Specifies the bottom border of a paragraph or a table cell.
|
static final int | LEFT = 1 | |
Specifies the left border of a paragraph or a table cell.
|
static final int | RIGHT = 2 | |
Specifies the right border of a paragraph or a table cell.
|
static final int | TOP = 3 | |
Specifies the top border of a paragraph or a table cell.
|
static final int | HORIZONTAL = 4 | |
Specifies the horizontal border between cells in a table or between conforming paragraphs.
|
static final int | VERTICAL = 5 | |
Specifies the vertical border between cells in a table.
|
static final int | DIAGONAL_DOWN = 6 | |
Specifies the diagonal border in a table cell.
|
static final int | DIAGONAL_UP = 7 | |
Specifies the diagonal border in a table cell.
|
NONE = -1 | |
public static final int NONE |
-
Default value.
BOTTOM = 0 | |
public static final int BOTTOM |
-
Specifies the bottom border of a paragraph or a table cell.
LEFT = 1 | |
public static final int LEFT |
-
Specifies the left border of a paragraph or a table cell.
RIGHT = 2 | |
public static final int RIGHT |
-
Specifies the right border of a paragraph or a table cell.
TOP = 3 | |
public static final int TOP |
-
Specifies the top border of a paragraph or a table cell.
HORIZONTAL = 4 | |
public static final int HORIZONTAL |
-
Specifies the horizontal border between cells in a table or between conforming paragraphs.
VERTICAL = 5 | |
public static final int VERTICAL |
-
Specifies the vertical border between cells in a table.
DIAGONAL_DOWN = 6 | |
public static final int DIAGONAL_DOWN |
-
Specifies the diagonal border in a table cell.
DIAGONAL_UP = 7 | |
public static final int DIAGONAL_UP |
-
Specifies the diagonal border in a table cell.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.