ClassProtectDialogContext
Provides context for the protection dialog.
Definition
Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs
Assembly:Telerik.Windows.Controls.Spreadsheet.dll
Syntax:
public class ProtectDialogContext : ProtectDialogContextBase
Inheritance: objectRadSpreadsheetDialogContextProtectDialogContextBaseProtectDialogContext
Inherited Members
Constructors
ProtectDialogContext(RadSpreadsheet, Sheet)
Initializes a new instance of the ProtectDialogContext class.
Declaration
public ProtectDialogContext(RadSpreadsheet radSpreadsheet, Sheet sheet)
Parameters
radSpreadsheet
The RadSpreadsheet.
sheet
Sheet
The active sheet.
ProtectDialogContext(RadSpreadsheet, Workbook)
Initializes a new instance of the ProtectDialogContext class.
Declaration
public ProtectDialogContext(RadSpreadsheet radSpreadsheet, Workbook workbook)
Parameters
radSpreadsheet
The RadSpreadsheet.
workbook
Workbook
The active workbook.
Properties
DialogHeader
Gets the dialog header.
Declaration
public override string DialogHeader { get; }
Property Value
The dialog header.
Overrides
Methods
GetProtectionsOptions()
Gets the protections options.
Declaration
public IEnumerable<ProtectDialogOption> GetProtectionsOptions()
Returns
IEnumerable<ProtectDialogOption>
An enumeration of protection options.
Protect(string, IEnumerable<ProtectDialogOption>)
Protects the current sheet or workbook.
Declaration
public void Protect(string password, IEnumerable<ProtectDialogOption> protectionOptions)
Parameters
password
The password.
protectionOptions
IEnumerable<ProtectDialogOption>
The protection options.