[]
Gets the protection settings of the worksheet.
Returns an IProtectionSettings object that provides access to the worksheet protection options. Changes to the returned settings take effect only when the worksheet is protected.
IProtectionSettings ProtectionSettings { get; }
ReadOnly Property ProtectionSettings As IProtectionSettings
worksheet.Protection = true;
IProtectionSettings protectionSettings = worksheet.ProtectionSettings;
protectionSettings.AllowFiltering = true;