This documentation is archived and is not being maintained.

Tab.ColorIndex Property 

Returns or sets the color of the specified chart tab.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in

Dim tab1 As Tab

Dim returnValue As XlColorIndex
returnValue = tab1.ColorIndex

Dim sampleValue As XlColorIndex
tab1.ColorIndex = sampleValue

XlColorIndex ColorIndex {get; set;}
public XlColorIndex get_ColorIndex();
public void set_ColorIndex(XlColorIndex);
function get ColorIndex() : XlColorIndex;
function set ColorIndex(XlColorIndex);

The color is specified as one of the XlColorIndex constants.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms