IXlTable.TableBorderFormatting Property
Gets or sets border settings for a table.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
DevExpress.Export.Xl.XlDifferentialFormatting | An XlDifferentialFormatting instance that specifies border formatting applied to the table’s borders. |
Remarks
To set table borders, use the XlFormatting.Border property of the XlDifferentialFormatting object inherited from the XlFormatting class.
Moreover, the XlDifferentialFormatting object implements implicit conversion from the XlBorder object, so that you can directly assign an XlBorder instance containing the required border settings to the TableBorderFormatting property without using unnecessary cast operators.
// Set outside borders for the table.
table.TableBorderFormatting = XlBorder.OutlineBorders(XlColor.FromTheme(XlThemeColor.Accent6, 0.0), XlBorderLineStyle.Thick);
See Also