[]
Represents custom border rendering options for PDF export.
Use this class with BorderOptions to override the width and dash pattern applied to a specific BorderLineStyle when a workbook is exported to PDF. Configure the border width with BorderWidth and define dashed segments with Dashes.
public class CustomBorderStyle
Public Class CustomBorderStyle
PdfSaveOptions options = new PdfSaveOptions();
CustomBorderStyle borderStyle = new CustomBorderStyle();
List<double> dashes = new List<double>();
dashes.Add(3.0);
dashes.Add(1.5);
borderStyle.BorderWidth = 0.4;
borderStyle.Dashes = dashes;
options.BorderOptions[BorderLineStyle.Dashed] = borderStyle;
| Name | Description |
|---|---|
| CustomBorderStyle() |
| Name | Description |
|---|---|
| BorderWidth | Gets or sets the width of a border when exporting to PDF. Use this property to retrieve or assign the custom width configured for this border style before the style is applied through BorderOptions. |
| Dashes | Gets or sets the dash pattern used for the custom border style. Each item in the list records the length of one segment in the dashed line pattern configured for PDF export. |