[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IFormatCondition.Delete

Delete Method

Delete()

Deletes this conditional format.

Use this method to remove the current conditional formatting rule from the worksheet.

Declaration
void Delete()
Sub Delete()
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);
condition.Interior.Color = Color.Yellow;
condition.Delete();