Edit

Share via


Protection.AllowSorting Property

Definition

Returns True if the sorting option is allowed on a protected worksheet.

public:
 property bool AllowSorting { bool get(); };
public bool AllowSorting { get; }
Public ReadOnly Property AllowSorting As Boolean

Property Value

Remarks

In a protected worksheet, sorting can only be performed on unlocked or unprotected cells.

The AllowSorting property can be set by using the Protect(Object, Object, Object) method arguments.

Applies to