[]
Gets or sets whether the sorting option is allowed on a protected worksheet.
This property indicates whether users can sort ranges when worksheet protection is enabled.
bool AllowSorting { get; set; }
Property AllowSorting As Boolean
worksheet.Protection = true;
IProtectionSettings protectionSettings = worksheet.ProtectionSettings;
protectionSettings.AllowSorting = true;
bool allowSorting = protectionSettings.AllowSorting;