[]
Represents the various types of protection options available for a worksheet. The setting action will take effect only if the worksheet is under protection.
public interface IProtectionSettings
Public Interface IProtectionSettings
Name | Description |
---|---|
AllowDeletingColumns | Gets or sets whether the deletion of columns is allowed on a protected worksheet. |
AllowDeletingRows | Gets or sets whether the deletion of rows is allowed on a protected worksheet. |
AllowEditingScenarios | Gets or sets whether the user is allowed to edit scenarios on a protected worksheet. The default value is false. |
AllowFiltering | Gets or sets whether the user is allowed to make use of an AutoFilter that was created before the sheet was protected. |
AllowFormattingCells | Gets or sets whether the formatting of cells is allowed on a protected worksheet. |
AllowFormattingColumns | Gets or sets whether the formatting of columns is allowed on a protected worksheet. |
AllowFormattingRows | Gets or sets whether the formatting of rows is allowed on a protected worksheet. |
AllowInsertingColumns | Gets or sets whether the insertion of columns is allowed on a protected worksheet. |
AllowInsertingHyperlinks | Gets or sets whether the insertion of hyperlinks is allowed on a protected worksheet. |
AllowInsertingRows | Gets or sets whether the insertion of rows is allowed on a protected worksheet. |
AllowSorting | Gets or sets whether the sorting option is allowed on a protected worksheet. |
AllowUsingObjects | Gets or sets whether the user is allowed to use objects on a protected worksheet. |
AllowUsingPivotTables | Gets or sets whether the user is allowed to use pivot tables on a protected worksheet. |
Name | Description |
---|---|
FromJson(string) | Generate protectionSettings from the JSON string. |
ToJson() | Generate the JSON string from the protectionSettings. |