Specifies sides of a border.
[Visual Basic]
Public Enum BorderType
[C#]public enum BorderType
Example
Inserts a paragraph with a top border.
[C#]
DocumentBuilder builder = new DocumentBuilder();
Border topBorder = builder.ParagraphFormat.Borders[BorderType.Top];
topBorder.Color = System.Drawing.Color.Red;
topBorder.LineStyle = LineStyle.DashSmallGap;
topBorder.LineWidth = 4;
builder.Writeln("Hello World!");[Visual Basic]
Dim builder As DocumentBuilder = New DocumentBuilder()
Dim topBorder As Border = builder.ParagraphFormat.Borders(BorderType.Top)
topBorder.Color = System.Drawing.Color.Red
topBorder.LineStyle = LineStyle.DashSmallGap
topBorder.LineWidth = 4
builder.Writeln("Hello World!")Members
| Member Name | Description | Value |
| Bottom | Specifies the bottom border of a paragraph or a table cell. | 0 |
| Left | Specifies the left border of a paragraph or a table cell. | 1 |
| Right | Specifies the right border of a paragraph or a table cell. | 2 |
| Top | Specifies the top border of a paragraph or a table cell. | 3 |
| Horizontal | Specifies the horizontal border between cells in a table or between conforming paragraphs. | 4 |
| Vertical | Specifies the vertical border between cells in a table. | 5 |
| DiagonalDown | Specifies the diagonal border in a table cell. | 6 |
| DiagonalUp | Specifies the diagonal border in a table cell. | 7 |
Requirements
Namespace: Aspose.Words
Assembly: Aspose.Words (in Aspose.Words.dll)
See Also
Aspose.Words Namespace