←Select platform

Name Property

Summary

Gets or sets the sheet name.

Syntax

C#
C++/CLI
Python
public string Name { get; set; } 
public:  
   property String^ Name 
   { 
      String^ get() 
      void set(String^ value) 
   } 
Name # get and set (Sheet) 

Property Value

The sheet name.

Remarks

With identifying and customizing the sheet name, it is easy to navigate and being referenced among multiple sheets.

Example

C#
using Leadtools; 
using Leadtools.Document.LEADOffice.Sheet; 
 
 
public void ReadExcelFileExample() 
{ 
   var filePath = Path.Combine(LEAD_VARS.ImagesDir, @"WorkbookTest.xlsx"); 
   // Load an Excel workbook from a file 
   var workbook = LEADWorkbookFactory.LoadFromFile(filePath, new LoadWorkbookOptions()); 
 
   Console.WriteLine("Sheets in the workbook:"); 
   // Iterate over sheets 
   foreach (var sheet in workbook) 
   { 
      Console.WriteLine(sheet.Name); 
   } 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS23\Resources\Images"; 
} 

Requirements

Target Platforms

See Also

Sheet Class

Sheet Members

Leadtools.Document.LEADOffice.Sheet Namespace

Help Version 23.0.2024.5.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.LEADOffice Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.