[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IFormatCondition.Interior

Interior Property

Interior

Gets an instance of IInterior which represents the background color of this conditional format.

Use the returned IInterior object to read or modify the fill settings applied when the conditional formatting rule is in effect.

Declaration
IInterior Interior { get; }
ReadOnly Property Interior As IInterior
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);
IInterior interior = condition.Interior;
interior.Color = Color.Red;