Click or drag to resize
BorderType Enumeration
Specifies sides of a border.

Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.11
Syntax
public enum BorderType
Members
  Member nameValueDescription
None-1 Default value.
Bottom0 Specifies the bottom border of a paragraph or a table cell.
Left1 Specifies the left border of a paragraph or a table cell.
Right2 Specifies the right border of a paragraph or a table cell.
Top3 Specifies the top border of a paragraph or a table cell.
Horizontal4 Specifies the horizontal border between cells in a table or between conforming paragraphs.
Vertical5 Specifies the vertical border between cells in a table.
DiagonalDown6 Specifies the diagonal border in a table cell.
DiagonalUp7 Specifies the diagonal border in a table cell.
Examples
Inserts a paragraph with a top border.
DocumentBuilder builder = new DocumentBuilder();

Border topBorder = builder.ParagraphFormat.Borders[BorderType.Top];
topBorder.Color = Color.Red;
topBorder.LineStyle = LineStyle.DashSmallGap;
topBorder.LineWidth = 4;

builder.Writeln("Hello World!");
See Also