Defines which operations users can perform on a protected worksheet, controlling row, column, cell, and filtering permissions.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model.Protection
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class WorksheetProtectionOptions
Inheritance: objectWorksheetProtectionOptions
Constructors
Initializes a new WorksheetProtectionOptions with specific permission flags for each operation type.
public WorksheetProtectionOptions(bool allowDeleteRows = false, bool allowInsertRows = false, bool allowDeleteColumns = false, bool allowInsertColumns = false, bool allowFormatCells = false, bool allowFormatColumns = false, bool allowFormatRows = false, bool allowFiltering = false, bool allowSorting = false)
The allow delete rows.
allowInsertRowsboolThe allow insert rows.
allowDeleteColumnsboolThe allow delete columns.
allowInsertColumnsboolThe allow insert columns.
allowFormatCellsboolThe allow format cells.
allowFormatColumnsboolThe allow format columns.
allowFormatRowsboolThe allow format rows.
allowFilteringboolThe allow use autofilter.
allowSortingboolThe allow sorting.
Fields
Default protection options that disallow all modifications (all permission flags set to false).
public static readonly WorksheetProtectionOptions Default
Methods
Creates a copy of this protection options instance with identical permission flags.
public WorksheetProtectionOptions Clone()
The cloned instance.
Properties
Gets whether users can delete columns when the worksheet is protected.
public bool AllowDeleteColumns { get; }
The allow delete columns.
Gets whether users can delete rows when the worksheet is protected.
public bool AllowDeleteRows { get; }
The allow delete rows.
Gets whether users can apply and modify autofilters when the worksheet is protected.
public bool AllowFiltering { get; }
The allow filtering.
Gets whether users can format cells (fonts, colors, borders) when the worksheet is protected.
public bool AllowFormatCells { get; }
The allow format cells.
Gets whether users can format columns (width, visibility, styles) when the worksheet is protected.
public bool AllowFormatColumns { get; }
The allow format columns.
Gets whether users can format rows (height, visibility, styles) when the worksheet is protected.
public bool AllowFormatRows { get; }
The allow format rows.
Gets whether users can insert new columns when the worksheet is protected.
public bool AllowInsertColumns { get; }
The allow insert columns.
Gets whether users can insert new rows when the worksheet is protected.
public bool AllowInsertRows { get; }
The allow insert rows.
Gets whether users can sort cell ranges when the worksheet is protected.
public bool AllowSorting { get; }
The allow sorting.