Gets the text of the sheet name tab at the specified sheet in the Spread component.
Syntax
Visual Basic (Declaration) | |
---|
Public Function GetTabText( _
ByVal index As Integer _
) As String |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As FpSpread
Dim index As Integer
Dim value As String
value = instance.GetTabText(index) |
Parameters
- index
- Index of the specified sheet
Return Value
String containing the text to be displayed in the sheet name tab
Remarks
Example
This example creates three sheets for the spreadsheet, names them and returns the name of the second sheet to a text box.
C# | Copy Code |
---|
FpSpread1.Sheets.Count=3;
FpSpread1.Sheets[0].SheetName="One";
FpSpread1.Sheets[1].SheetName="Two";
FpSpread1.Sheets[2].SheetName="Three";
TextBox1.Text=FpSpread1.GetTabText(1); |
Visual Basic | Copy Code |
---|
FpSpread1.Sheets.Count=3
FpSpread1.Sheets(0).SheetName="One"
FpSpread1.Sheets(1).SheetName="Two"
FpSpread1.Sheets(2).SheetName="Three"
TextBox1.Text=FpSpread1.GetTabText(1) |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also