Class ProtectDialogContext
Provides context for the protection dialog.
Inherited Members
Namespace: Telerik.WinForms.Controls.Spreadsheet.Dialogs
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public class ProtectDialogContext : ProtectDialogContextBase
Constructors
ProtectDialogContext(RadSpreadsheetElement, Sheet)
Initializes a new instance of the ProtectDialogContext class.
Declaration
public ProtectDialogContext(RadSpreadsheetElement radSpreadsheetElement, Sheet sheet)
Parameters
RadSpreadsheetElement
radSpreadsheetElement
The RAD spreadsheet element. |
Sheet
sheet
The active sheet. |
ProtectDialogContext(RadSpreadsheetElement, Workbook)
Initializes a new instance of the ProtectDialogContext class.
Declaration
public ProtectDialogContext(RadSpreadsheetElement radSpreadsheetElement, Workbook workbook)
Parameters
RadSpreadsheetElement
radSpreadsheetElement
The RAD spreadsheet element. |
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. |