This is a migrated thread and some comments may be shown as answers.

ICellExporter how to set background color

1 Answer 321 Views
SpreadStreamProcessing
This is a migrated thread and some comments may be shown as answers.
hangyu
Top achievements
Rank 1
hangyu asked on 31 May 2019, 08:08 AM

currently ,we can set fore color for cell ,like 

ICellExporter cellExporter = rowExporter.CreateCellExporter()

var color = System.Drawing.ColorTranslator.FromHtml("#0095ff");
cellExporter.SetFormat(new SpreadCellFormat() { ForeColor = new SpreadThemableColor(new SpreadColor(color.R, color.G, color.B))} );

 

but how to set background color for cell,i searched API but find nothing,anyone good idea?

 

thank you 

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 31 May 2019, 09:44 AM
Hello Hangyu,

The SpreadCellFormat class exposes a Fill property which will set the background of a cell. You can find an example in the Set a Format help topic. 

Regards,
Tanya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
SpreadStreamProcessing
Asked by
hangyu
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or