WorksheetBase.Tab Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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