Spread for ASP.NET 7.0 Product Documentation
Item Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > TabInfo Class : Item Property


index
Index of the tab

Glossary Item Box

Gets or sets the text in the sheet name tab.

Syntax

Visual Basic (Declaration) 
Public Default Property Item( _
   ByVal index As Integer _
) As String
Visual Basic (Usage)Copy Code
Dim instance As TabInfo
Dim index As Integer
Dim value As String
 
instance.Item(index) = value
 
value = instance.Item(index)
C# 
public string this[ 
   int index
]; {get; set;}

Parameters

index
Index of the tab

Property Value

String containing the tab text (sheet name)

Example

This example shows how to set the display of the sheet name tabs.
C#Copy Code
FpSpread1.Sheets.Count = 3; 
FpSpread1.Tab.ActiveTabBackColor = Color.Yellow; 
FpSpread1.Tab.ActiveTabBorderColor = Color.Red; 
FpSpread1.Tab.FirstVisibleTab = 1; 
FpSpread1.Tab[0] = "First"; 
FpSpread1.Tab[1] = "Second"; 
FpSpread1.Tab[2] = "Third"; 
FpSpread1.Tab.TextColor = Color.Red; 
FpSpread1.Tab.TabControlPolicy = FarPoint.Web.Spread.TabControlPolicy.Always; 
FpSpread1.Tab.VisibleCount = 2; 
FpSpread1.Tab.ScrollIncrement = 2; 
ListBox1.Items.Add(FpSpread1.Tab.Count.ToString()); 
Visual BasicCopy Code
FpSpread1.Sheets.Count = 3
FpSpread1.Tab.ActiveTabBackColor = Color.Yellow
FpSpread1.Tab.ActiveTabBorderColor = Color.Red
FpSpread1.Tab.FirstVisibleTab = 1
FpSpread1.Tab.Item(0) = "First"
FpSpread1.Tab.Item(1) = "Second"
FpSpread1.Tab.Item(2) = "Third"
FpSpread1.Tab.TextColor = Color.Red
FpSpread1.Tab.TabControlPolicy = FarPoint.Web.Spread.TabControlPolicy.Always
FpSpread1.Tab.VisibleCount = 2
FpSpread1.Tab.ScrollIncrement = 2
ListBox1.Items.Add(FpSpread1.Tab.Count) 

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.