[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IStyle.IncludeProtection

IncludeProtection Property

IncludeProtection

Gets or sets whether the style includes the IStyle.FormulaHidden and IStyle.Locked properties.

Use this property to control or inspect whether protection-related settings defined by the style participate when the style is applied.

Declaration
bool IncludeProtection { get; set; }
Property IncludeProtection As Boolean
Examples
IStyle style = workbook.Styles.Add("protectionStyle");
style.Locked = true;
style.FormulaHidden = true;
style.IncludeProtection = false;
worksheet.Range["A1"].Style = style;
bool includeProtection = style.IncludeProtection;