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

Provides context for the unprotect dialog.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class UnprotectDialogContext : ProtectDialogContextBase

Inheritance: objectRadSpreadsheetDialogContextProtectDialogContextBaseUnprotectDialogContext

Inherited Members RadSpreadsheetDialogContext.RadSpreadsheetRadSpreadsheetDialogContext.Owner

Constructors

Initializes a new instance of the UnprotectDialogContext class.

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

The RadSpreadsheet.

sheetSheet

The active sheet.

Initializes a new instance of the UnprotectDialogContext class.

C#
public UnprotectDialogContext(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

Unprotects the sheet.

C#
public bool Unprotect(string password)
Parameters:passwordstring

The password.

Returns:

bool

A value indicating whether the unprotecting was successful.