Class TableBorder
Border model for table and cell rendering.
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public sealed class TableBorder
Properties
Bottom
Gets the bottom border edge.
Declaration
public TableBorderEdge Bottom { get; }
Property Value
| Type | Description |
|---|---|
| TableBorderEdge |
CornerRadius
Gets or sets the rounded corner radius for the outer border path.
Declaration
public double CornerRadius { get; set; }
Property Value
| Type | Description |
|---|---|
| double |
Left
Gets the left border edge.
Declaration
public TableBorderEdge Left { get; }
Property Value
| Type | Description |
|---|---|
| TableBorderEdge |
Right
Gets the right border edge.
Declaration
public TableBorderEdge Right { get; }
Property Value
| Type | Description |
|---|---|
| TableBorderEdge |
Top
Gets the top border edge.
Declaration
public TableBorderEdge Top { get; }
Property Value
| Type | Description |
|---|---|
| TableBorderEdge |
Methods
CreateAll(double, PdfColor?)
Creates a new TableBorder with all edges set to the same width and color.
Declaration
public static TableBorder CreateAll(double width = 1, PdfColor? color = null)
Parameters
| Type | Name | Description |
|---|---|---|
| double | width | The border width in points. Default is 1.0. |
| PdfColor? | color | The border color. Default is Black. |
Returns
| Type | Description |
|---|---|
| TableBorder | A new TableBorder instance. |
SetAll(double, PdfColor)
Sets all border edges to the same width and color, and makes them visible.
Declaration
public void SetAll(double width, PdfColor color)
Parameters
| Type | Name | Description |
|---|---|---|
| double | width | The border width in points. |
| PdfColor | color | The border color. |