[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IStyle.IncludeFont

IncludeFont Property

IncludeFont

Gets or sets whether the style includes the IFont.Bold, IFont.Color,IFont.ColorIndex, IFont.FontStyle,IFont.Italic, IFont.Name,IFont.OutlineFont, IFont.Shadow,IFont.Size, IFont.Strikethrough,IFont.Subscript, IFont.Superscript, and IFont.Underline font properties.

Use this property to control or inspect whether font settings stored in the style are included when the style is applied.

Declaration
bool IncludeFont { get; set; }
Property IncludeFont As Boolean
Examples
IStyle style = workbook.Styles.Add("fontStyle");
style.Font.Bold = true;
style.Font.Name = "Arial";
style.IncludeFont = false;
worksheet.Range["A1"].Style = style;
bool includeFont = style.IncludeFont;