Base class for a sheet in a Microsoft Excel workbook.
Inheritance
object
Classes that extend this class.
Derived ClassesProperties
Section titled "Properties"HasProtectionPassword
Section titled "HasProtectionPassword"Returns a boolean indicating if the Sheet has been protected with a password.
public bool HasProtectionPassword { get; } IsProtected
Section titled "IsProtected"Returns a boolean indicating if the Worksheet has been protected.
public bool IsProtected { get; } Gets or sets the sheet name.
public string Name { get; set; } Selected
Section titled "Selected"Gets the value which indicates whether this worksheet is selected.
public bool Selected { get; } SheetIndex
Section titled "SheetIndex"Gets the zero-based index of this sheet in its parent collection.
public int SheetIndex { get; } TabColorInfo
Section titled "TabColorInfo"Gets or sets the to use for the associated sheet's tab in the tab bar of Microsoft Excel.
public WorkbookColorInfo TabColorInfo { get; set; } Returns a value indicating the type of sheet
public abstract SheetType Type { get; } Workbook
Section titled "Workbook"Gets the that owns the worksheet.
public Workbook Workbook { get; } Methods
Section titled "Methods"MoveToSheetIndex(int)
Section titled "MoveToSheetIndex(int)"Moves the sheet to a new position in the owning workbook's collections of sheets.
public void MoveToSheetIndex(int index) Parameters
- index:
int
Returns any
Unprotect()
Section titled "Unprotect()"Removes the Sheet protection.
public void Unprotect() Returns any
Unprotect(SecureString)
Section titled "Unprotect(SecureString)"Attempts to use the specified password to remove the Sheet protection currently in place.
public void Unprotect(SecureString password) Parameters
- password:
SecureString
Returns any
Unprotect(string)
Section titled "Unprotect(string)"Attempts to use the specified password to remove the WorkSheet protection currently in place.
public void Unprotect(string password) Parameters
- password:
string