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 | |
Default value.
|
static final int | BOTTOM | |
Specifies the bottom border of a paragraph or a table cell.
|
static final int | LEFT | |
Specifies the left border of a paragraph or a table cell.
|
static final int | RIGHT | |
Specifies the right border of a paragraph or a table cell.
|
static final int | TOP | |
Specifies the top border of a paragraph or a table cell.
|
static final int | HORIZONTAL | |
Specifies the horizontal border between cells in a table or between conforming paragraphs.
|
static final int | VERTICAL | |
Specifies the vertical border between cells in a table.
|
static final int | DIAGONAL_DOWN | |
Specifies the diagonal border in a table cell.
|
static final int | DIAGONAL_UP | |
Specifies the diagonal border in a table cell.
|
NONE | |
public static final int NONE |
-
Default value.
BOTTOM | |
public static final int BOTTOM |
-
Specifies the bottom border of a paragraph or a table cell.
LEFT | |
public static final int LEFT |
-
Specifies the left border of a paragraph or a table cell.
RIGHT | |
public static final int RIGHT |
-
Specifies the right border of a paragraph or a table cell.
TOP | |
public static final int TOP |
-
Specifies the top border of a paragraph or a table cell.
HORIZONTAL | |
public static final int HORIZONTAL |
-
Specifies the horizontal border between cells in a table or between conforming paragraphs.
VERTICAL | |
public static final int VERTICAL |
-
Specifies the vertical border between cells in a table.
DIAGONAL_DOWN | |
public static final int DIAGONAL_DOWN |
-
Specifies the diagonal border in a table cell.
DIAGONAL_UP | |
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.