Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

SpreadsheetProtectionBehaviorOptions Members

Provides options to restrict an end-user’s capability to protect or unprotect a document in the SpreadsheetControl.

Constructors

Name Description
SpreadsheetProtectionBehaviorOptions() Initializes a new instance of the SpreadsheetProtectionBehaviorOptions class with the default settings.

Properties

Name Description
AllowUsersToEditRange Gets or sets the document’s capability to unlock ranges in a protected worksheet for editing by authenticated users.
AllowUsersToEditRangeAllowed Gets whether an end-user is allowed to specify user permission to edit ranges in a protected worksheet.
ProtectSheet Gets or sets the document’s capability to protect a worksheet.
ProtectSheetAllowed Gets whether an end-user is allowed to protect a worksheet.
ProtectWorkbook Gets or sets the document’s capability to protect a workbook.
ProtectWorkbookAllowed Gets whether an end-user is allowed to protect a workbook.
UnprotectSheet Gets or sets the document’s capability to remove the worksheet protection.
UnprotectSheetAllowed Gets whether an end-user is allowed to unprotect a worksheet.
UnprotectWorkbook Gets or sets the document’s capability to remove the workbook protection.
UnprotectWorkbookAllowed Gets whether an end-user is allowed to unprotect a workbook.

Methods

Name Description
Assign(BaseOptions) Copies all settings from the SpreadsheetProtectionBehaviorOptions object passed as a parameter.
BeginUpdate() Locks the BaseOptions object by disallowing visual updates until the EndUpdate or CancelUpdate method is called. Inherited from BaseOptions.
CancelUpdate() Unlocks the BaseOptions object after it has been locked by the BeginUpdate method, without causing an immediate visual update. Inherited from BaseOptions.
EndUpdate() Unlocks the BaseOptions object after a call to the BeginUpdate method and causes an immediate visual update. Inherited from BaseOptions.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string representing the currently enabled options. Inherited from BaseOptions.
See Also