Spread Windows Forms 6.0 Product Documentation
SheetName Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SheetName Property


Glossary Item Box

Gets or sets the name of the sheet.

Syntax

Visual Basic (Declaration) 
Public Property SheetName As String
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim value As String
 
instance.SheetName = value
 
value = instance.SheetName
C# 
public string SheetName {get; set;}

Property Value

String containing the name of the sheet

Exceptions

ExceptionDescription
System.ArgumentExceptionSpecified sheet name is not valid; must not be null or empty

Remarks

This is the name that appears in the sheet name tab.

This is also the name that is used when exporting sheets to Excel. If exporting to Excel, be sure that the sheet name does not have characters considered invalid by Excel. Refer to the remarks with the SaveExcel overload list for more information.

Sheet names may have spaces. When referring to a sheet name in a cell reference, be sure to use single quotes if the sheet name has a space in it.

Example

This example illustrates the use of this member by returning the name of the active sheet.
C#Copy Code
fpSpread1.Sheets.Count = 3;
listBox1.Items.Add(fpSpread1.ActiveSheet.SheetName.ToString());
Visual BasicCopy Code
FpSpread1.Sheets.Count = 3
ListBox1.Items.Add(FpSpread1.ActiveSheet.SheetName.ToString())

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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