[]
Gets or sets whether the formatting of cells is allowed on a protected worksheet.
This setting is meaningful only when worksheet protection is enabled.
bool AllowFormattingCells { get; set; }
Property AllowFormattingCells As Boolean
worksheet.Protection = true;
IProtectionSettings protectionSettings = worksheet.ProtectionSettings;
protectionSettings.AllowFormattingCells = true;
bool allowFormattingCells = protectionSettings.AllowFormattingCells;