New to Telerik UI for WPFStart a free 30-day trial

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 RadSpreadsheetDialogContext.RadSpreadsheetRadSpreadsheetDialogContext.Owner

Constructors

Initializes a new instance of the ProtectDialogContext class.

C#
public ProtectDialogContext(RadSpreadsheet radSpreadsheet, Sheet sheet)
Parameters:radSpreadsheetRadSpreadsheet

The RadSpreadsheet.

sheetSheet

The active sheet.

Initializes a new instance of the ProtectDialogContext class.

C#
public ProtectDialogContext(RadSpreadsheet radSpreadsheet, Workbook workbook)
Parameters:radSpreadsheetRadSpreadsheet

The RadSpreadsheet.

workbookWorkbook

The active workbook.

Properties

Gets the dialog header.

C#
public override string DialogHeader { get; }
Property Value:

The dialog header.

Overrides: ProtectDialogContextBase.DialogHeader

Methods

Gets the protections options.

C#
public IEnumerable<ProtectDialogOption> GetProtectionsOptions()
Returns:

IEnumerable<ProtectDialogOption>

An enumeration of protection options.

Protects the current sheet or workbook.

C#
public void Protect(string password, IEnumerable<ProtectDialogOption> protectionOptions)
Parameters:passwordstring

The password.

protectionOptionsIEnumerable<ProtectDialogOption>

The protection options.