Megosztás a következőn keresztül:


Worksheet.Tab Property (2007 System)

Gets a Tab for the worksheet.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Tab As Tab
'Usage
Dim instance As Worksheet 
Dim value As Tab 

value = instance.Tab
[BrowsableAttribute(false)]
public Tab Tab { get; }
[BrowsableAttribute(false)]
public:
property Tab^ Tab {
    Tab^ get ();
}
public function get Tab () : Tab

Property Value

Type: 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 Sub SetTabColor()
    ' Set the color to the RGB value for blue. 
    Me.Tab.Color = &HFF0000
End Sub
private void SetTabColor()
{
    // Set the color to the RGB value for blue. 
    this.Tab.Color = 0xFF0000;
}

.NET Framework Security

See Also

Reference

Worksheet Class

Worksheet Members

Microsoft.Office.Tools.Excel Namespace