Set Worksheet Tab Color in Aspose.Cells
Contents
[
Hide
]
Aspose.Cells - Set Worksheet Tab Color
Aspose.Cells allows you to change the color of individual worksheet tabs to make them prominent from the rest. For example, you can make Expenses red, Sales green, Assets blue, etc.
Setting Worksheet Tab Color with Microsoft Excel
- Right-click a tab in the tab-sheet at the bottom of the current worksheet.
- Select Tab color.
- Select a color from the palette.
- Click OK.
C#
//Instantiate a new Workbook
Workbook workbook = new Workbook("../../data/test.xlsx");
//Get the first worksheet in the book
Worksheet worksheet = workbook.Worksheets[0];
//Set the tab color
worksheet.TabColor = Color.Red;
//Save the Excel file
workbook.Save("AsposeColoredTab_Out.xls");
Download Running Code
Download Set Worksheet Tab Color form any of the below mentioned social coding sites:
For more details, visit Set Worksheet Tab Color.