com.aspose.words
Class BorderType

java.lang.Object
    extended by 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 intNONE = -1
           Default value.
static final intBOTTOM = 0
           Specifies the bottom border of a paragraph or a table cell.
static final intLEFT = 1
           Specifies the left border of a paragraph or a table cell.
static final intRIGHT = 2
           Specifies the right border of a paragraph or a table cell.
static final intTOP = 3
           Specifies the top border of a paragraph or a table cell.
static final intHORIZONTAL = 4
           Specifies the horizontal border between cells in a table or between conforming paragraphs.
static final intVERTICAL = 5
           Specifies the vertical border between cells in a table.
static final intDIAGONAL_DOWN = 6
           Specifies the diagonal border in a table cell.
static final intDIAGONAL_UP = 7
           Specifies the diagonal border in a table cell.
 

Field Detail

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.