Worksheet

Overview

Worksheet is a class in Aspose.Cells for NET.

Worksheet.Protect enables worksheet protection, preventing edits to locked cells.

Properties

NameTypeAccessDescription
NamestringRead/WriteGets or sets the worksheet’s display name
VisibilityTypeVisibilityTypeRead/WriteGets or sets whether the sheet is visible, hidden, or very hidden
TabColorColorRead/WriteGets or sets the color of the worksheet tab
ShowGridlinesboolRead/WriteGets or sets whether gridlines are displayed on the sheet
ShowRowColumnHeadersboolRead/WriteGets or sets visibility of row and column headers
ShowZerosboolRead/WriteGets or sets whether zero values are shown in cells
RightToLeftboolRead/WriteGets or sets right‑to‑left display orientation for the sheet
ZoomintRead/WriteGets or sets the zoom level percentage for the sheet view
CellsCellsReadProvides access to the collection of cells in the worksheet
HyperlinksHyperlinkCollectionReadProvides the collection of hyperlinks defined on the sheet
ValidationsValidationCollectionReadProvides the collection of data validations defined on the worksheet
ConditionalFormattingsConditionalFormattingCollectionReadProvides the collection of conditional formatting rules
PageSetupPageSetupReadProvides page layout and printing settings for the sheet
ProtectionWorksheetProtectionReadProvides the worksheet’s protection configuration object
AutoFilterAutoFilterReadProvides the auto‑filter functionality applied to the sheet

Methods

SignatureDescription
Protect()Enables worksheet protection, preventing edits to locked cells
Unprotect()Disables worksheet protection, allowing edits