مستندات HotXLS

ویژگی TabColor

رنگ زبانه Worksheet را برمی‌گرداند یا تنظیم می‌کند. خواندنی/نوشتنی Integer
این مثال رنگ زبانه Worksheet اول را قرمز تنظیم می‌کند
The reader resolves indexed colors through the workbook palette so the application always sees a concrete RGB value, regardless of how Excel encoded the color in the source .xls file

نحو

property TabColor: Longword;

مثال

This example sets the first sheet's tab to green and the second sheet's tab to red, then saves the workbook

Workbook.Worksheets[1].TabColor := RGB(0, 255, 0);
Workbook.Worksheets[2].TabColor := RGB(255, 0, 0);
Workbook.SaveAs('TabColors.xls');