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