←Select platform

SetSheetHidden Method

Summary

Modifies the visibility of a specified sheet within the Excel workbook. Allows for programmatically hiding or showing sheets.

Syntax

C#
C++/CLI
Python
public void SetSheetHidden( 
   string sheetName, 
   bool hidden 
) 
public:  
   void SetSheetHidden( 
      String^ sheetName, 
      bool hidden 
   ) 
def SetSheetHidden(self,sheetName,hidden): 

Parameters

sheetName

A string specifying the name of the sheet whose visibility is to be changed. The sheet name must exactly match an existing sheet in the workbook, including case sensitivity.

hidden

A bool indicating the desired visibility state of the sheet. Set to true to hide the sheet; false to make it visible.

Requirements

Target Platforms

See Also

LEADWorkbook Class

LEADWorkbook Members

Leadtools.Document.LEADOffice.Sheet Namespace

Help Version 23.0.2024.4.15
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.