Class XlsxSheetProtection
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
What a protected sheet still lets a user of Excel do (Phase 215; the sheetProtection element). Excel's
defaults: selecting cells is allowed, everything else is not.
public sealed class XlsxSheetProtection
- Inheritance
-
XlsxSheetProtection
- Inherited Members
Remarks
Protection is a flag for Excel's interface, not security: anyone with the file can remove it, and this library edits a protected sheet unless the workbook is opened with HonorProtection.
Constructors
Properties
- AllowAutoFilter
Gets or sets whether an auto filter may be used.
- AllowDeleteColumns
Gets or sets whether columns may be deleted.
- AllowDeleteRows
Gets or sets whether rows may be deleted.
- AllowEditObjects
Gets or sets whether shapes, charts and other objects may be edited.
- AllowEditScenarios
Gets or sets whether scenarios may be edited.
- AllowFormatCells
Gets or sets whether cells may be formatted.
- AllowFormatColumns
Gets or sets whether columns may be formatted (widths, hiding).
- AllowFormatRows
Gets or sets whether rows may be formatted (heights, hiding).
- AllowInsertColumns
Gets or sets whether columns may be inserted.
- AllowInsertHyperlinks
Gets or sets whether hyperlinks may be inserted.
- AllowInsertRows
Gets or sets whether rows may be inserted.
- AllowPivotTables
Gets or sets whether pivot tables may be used.
- AllowSelectLockedCells
Gets or sets whether locked cells may be selected (true by default).
- AllowSelectUnlockedCells
Gets or sets whether unlocked cells may be selected (true by default).
- AllowSort
Gets or sets whether ranges may be sorted.
- HasPassword
Gets whether the protection is stated with a password (read from a sheet; ignored by Protect(XlsxSheetProtection?, string?)).