XlBorder.NoBorders() Method

Returns the XlBorder object specifying that a cell has no visible borders.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v21.1.Core.dll


public static XlBorder NoBorders()


Type Description

An XlBorder class instance.


Use the NoBorders method to remove all borders from a cell. To remove a particular border (top, bottom, left, right or diagonal) from a cell, set the corresponding *LineStyle property of the XlBorder object to XlBorderLineStyle.None.

To apply the specified border settings to a cell, pass the XlBorder object to the IXlCell.ApplyFormatting method as a parameter, or assign it to the IXlCell.Formatting property.

For more information on how to set cell borders, refer to the How to: Add Cell Borders example.

See Also