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

How Can I Programmatically Change The Tab Color Of All Sheets

1 Answer 189 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
Zhang
Top achievements
Rank 1
Zhang asked on 23 Feb 2016, 09:25 AM

Hi,

In my project,a workbook contains several worksheets .I want to  programmatically change the sheet tab color under the sheet editor footer so that user can easily 

distinguish them from each other.

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 25 Feb 2016, 02:50 PM
Hello Zhang,

You could use the TabColor property of the Worksheet's ViewState as demonstrated in the following snippet:
worksheet.ViewState.TabColor = new ThemableColor(Colors.Aquamarine);

Hope this helps.

Regards,
Tanya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Spreadsheet
Asked by
Zhang
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or