WorksheetBase.Tab Property

Definition

Gets a Tab for the worksheet.

public:
 property Microsoft::Office::Interop::Excel::Tab ^ Tab { Microsoft::Office::Interop::Excel::Tab ^ get(); };
public Microsoft.Office.Interop.Excel.Tab Tab { get; }
member this.Tab : Microsoft.Office.Interop.Excel.Tab
Public ReadOnly Property Tab As Tab

Property Value

Tab

A Tab for the worksheet.

Examples

The following code example uses the Tab property to set the primary color of the worksheet's tab to blue.

This example is for a document-level customization.

private void SetTabColor()
{
    // Set the color to the RGB value for blue.
    this.Tab.Color = 0xFF0000;
}
Private Sub SetTabColor()
    ' Set the color to the RGB value for blue.
    Me.Tab.Color = &HFF0000
End Sub

Applies to