XlBorder.TopColor Property

Gets or sets the line color of the cell’s top border.

Namespace: DevExpress.Export.Xl

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


public XlColor TopColor { get; set; }

Property Value

Type Description

An XlColor object that specifies the border line color.


Use the TopColor property to set or obtain the top border color. If you specify the TopColor for a border without setting it’s XlBordersBase.TopLineStyle, the border will not be displayed.

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

See Also