How Can I Programmatically Change The Tab Color Of All Sheets

2 posts, 0 answers
  1. Zhang
    Zhang avatar
    13 posts
    Member since:
    Oct 2013

    Posted 23 Feb Link to this post


    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.

  2. Tanya
    Tanya avatar
    376 posts

    Posted 25 Feb Link to this post

    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.

    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
  3. DevCraft R3 2016 release webinar banner
Back to Top