Spread ASP.NET 6.0 Product Documentation
SheetName Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.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.ArgumentExceptionNo sheet specified or value is null

Remarks

This is the name that appears as a link in the command bar when sheet names tabs are visible.

For multiple sheets, be careful not to make the names of the sheets so long that the command buttons and other elements of the command bar are not visible to the right of the names.

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 adds the sheet to the collection.
C#Copy Code
FarPoint.Web.Spread.SheetView sv;
sv.SheetName = "Medical";
FpSpread1.Sheets.Add(sv);
Visual BasicCopy Code
Dim sv As New FarPoint.Web.Spread.SheetView
sv.SheetName = "Medical"
FpSpread1.Sheets.Add(sv)

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

© 2002-2012 GrapeCity, Inc. All Rights Reserved.