[]
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
Gets or sets whether the deletion of columns is allowed on a protected worksheet.
bool AllowDeletingColumns { get; set; }
Gets or sets whether the deletion of rows is allowed on a protected worksheet.
bool AllowDeletingRows { get; set; }
Gets or sets whether the user is allowed to make use of an AutoFilter that was created before the sheet was protected.
bool AllowFiltering { get; set; }
Gets or sets whether the formatting of cells is allowed on a protected worksheet.
bool AllowFormattingCells { get; set; }
Gets or sets whether the formatting of columns is allowed on a protected worksheet.
bool AllowFormattingColumns { get; set; }
Gets or sets whether the formatting of rows is allowed on a protected worksheet.
bool AllowFormattingRows { get; set; }
Gets or sets whether the insertion of columns is allowed on a protected worksheet.
bool AllowInsertingColumns { get; set; }
Gets or sets whether the insertion of hyperlinks is allowed on a protected worksheet.
bool AllowInsertingHyperlinks { get; set; }
Gets or sets whether the insertion of rows is allowed on a protected worksheet.
bool AllowInsertingRows { get; set; }
Gets or sets whether the sorting option is allowed on a protected worksheet.
bool AllowSorting { get; set; }
Gets or sets whether the user is allowed to use objects on a protected worksheet.
bool AllowUsingObjects { get; set; }
Gets or sets whether the user is allowed to use pivot tables on a protected worksheet.
bool AllowUsingPivotTables { get; set; }
Generate protectionSettings from the JSON string.
void FromJson(string json)
json
stringThe JSON string representing the ProtectionOptions.
Generate the JSON string from the protectionSettings.
string ToJson()
The JSON string representing the ProtectionOptions.