Class ProtectDialogContext
Provides context for the protection dialog.
Namespace: Telerik.Windows.Controls.Spreadsheet.Dialogs
Assembly: Telerik.Windows.Controls.Spreadsheet.dll
Syntax
public class ProtectDialogContext : ProtectDialogContextBase
Constructors
ProtectDialogContext(RadSpreadsheet, Sheet)
Initializes a new instance of the ProtectDialogContext class.
Declaration
public ProtectDialogContext(RadSpreadsheet radSpreadsheet, Sheet sheet)
Parameters
RadSpreadsheet
radSpreadsheet
The RadSpreadsheet. |
Telerik.Windows.Documents.Spreadsheet.Model.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
radSpreadsheet
The RadSpreadsheet. |
Telerik.Windows.Documents.Spreadsheet.Model.Workbook
workbook
The active workbook. |
Properties
DialogHeader
Gets the dialog header.
Declaration
public override string DialogHeader { get; }
Property Value
System.String
The dialog header. |
Overrides
Methods
GetProtectionsOptions()
Gets the protections options.
Declaration
public IEnumerable<ProtectDialogOption> GetProtectionsOptions()
Returns
System.Collections.Generic.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
System.String
password
The password. |
System.Collections.Generic.IEnumerable<ProtectDialogOption>
protectionOptions
The protection options. |