[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IFormatCondition.Font

Font Property

Font

Gets an instance of IFont that represents the font of this conditional format.

Use the returned font object to configure font settings that are applied when the conditional formatting rule is triggered.

Declaration
IFont Font { get; }
ReadOnly Property Font As IFont
Examples
worksheet.Range["A1:B5"].Value = new object[,] {{1, 2}, {0, 1}, {0, 0}, {0, 3}, {4, 5}};
IFormatCondition condition = (IFormatCondition) worksheet.Range["B1:B5"]
    .FormatConditions.Add(FormatConditionType.Expression, FormatConditionOperator.None, "=A1", null);
IFont font = condition.Font;
font.Bold = true;