windowsforms-devexpress-dot-xtraspreadsheet-dot-customdrawcellbackgroundeventargs.md
Gets or sets the background color of the painted cell.
Namespace : DevExpress.XtraSpreadsheet
Assembly : DevExpress.XtraSpreadsheet.v25.2.dll
NuGet Package : DevExpress.Win.Spreadsheet
public Color BackColor { get; set; }
Public Property BackColor As Color
| Type | Description |
|---|---|
| Color |
A Color structure that specifies the cell’s background color.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BackColor 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.
winforms-spreadsheet-custom-draw-example/CS/WindowsFormsApp1/Form1.cs#L115
{
e.BackColor = Color.FromArgb(50, 200, 44, 74);
return;
winforms-spreadsheet-custom-draw-example/VB/CustomDrawExample/Form1.vb#L208
If e.Cell Is spreadsheetControl1.ActiveCell Then
e.BackColor = Color.FromArgb(50, 200, 44, 74)
Return
See Also
CustomDrawCellBackgroundEventArgs Class