XlBorder.TopColor Property
Gets or sets the line color of the cell’s top border.
Namespace: DevExpress.Export.Xl
Assembly: DevExpress.Printing.v24.1.Core.dll
NuGet Package: DevExpress.Printing.Core
Declaration
Property Value
Type | Description |
---|---|
XlColor | An XlColor object that specifies the border line color. |
Remarks
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the TopColor property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.