Class
ProtectDialogContext

Provides context for the protection dialog.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public class ProtectDialogContext : ProtectDialogContextBase

Inheritance: objectRadSpreadsheetDialogContextProtectDialogContextBaseProtectDialogContext

Inherited Members RadSpreadsheetDialogContext.RadSpreadsheetRadSpreadsheetDialogContext.Owner

Constructors

ProtectDialogContext(RadSpreadsheet, Sheet)

Initializes a new instance of the ProtectDialogContext class.

Declaration

cs-api-definition
public ProtectDialogContext(RadSpreadsheet radSpreadsheet, Sheet sheet)

Parameters

radSpreadsheet

RadSpreadsheet

The RadSpreadsheet.

sheet

Sheet

The active sheet.

ProtectDialogContext(RadSpreadsheet, Workbook)

Initializes a new instance of the ProtectDialogContext class.

Declaration

cs-api-definition
public ProtectDialogContext(RadSpreadsheet radSpreadsheet, Workbook workbook)

Parameters

radSpreadsheet

RadSpreadsheet

The RadSpreadsheet.

workbook

Workbook

The active workbook.

Properties

DialogHeader

Gets the dialog header.

Declaration

cs-api-definition
public override string DialogHeader { get; }

Property Value

string

The dialog header.

Overrides ProtectDialogContextBase.DialogHeader

Methods

GetProtectionsOptions()

Gets the protections options.

Declaration

cs-api-definition
public IEnumerable<ProtectDialogOption> GetProtectionsOptions()

Returns

IEnumerable<ProtectDialogOption>

An enumeration of protection options.

Protect(string, IEnumerable<ProtectDialogOption>)

Protects the current sheet or workbook.

Declaration

cs-api-definition
public void Protect(string password, IEnumerable<ProtectDialogOption> protectionOptions)

Parameters

password

string

The password.

protectionOptions

IEnumerable<ProtectDialogOption>

The protection options.