[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IDisplayFormat.Font

Font Property

Font

Gets a IFont object that represents the font of the associated range as it is displayed in the current user interface.

Declaration
IFont Font { get; }
ReadOnly Property Font As IFont
Examples
IRange range = worksheet.Range["A1"];
range.Value = 1234.56;
range.Font.Color = Color.Black;
IFormatCondition condition = (IFormatCondition) range.FormatConditions.Add(
    FormatConditionType.CellValue, FormatConditionOperator.Greater, "1000", null);
condition.Font.Color = Color.Blue;
IFont font = range.DisplayFormat.Font;
Color color = font.Color;