[]
Gets the conditional format at the specified zero-based index.
Use this indexer to access an existing conditional format in the collection for a range.
object this[int index] { get; }
ReadOnly Default Property Item(index As Integer) As Object
| Type | Name | Description |
|---|---|---|
| int | index | The zero-based index of the conditional format in the collection. |
IRange range = worksheet.Range["A1:A5"];
range.Value = new object[,] {{1}, {3}, {5}, {7}, {9}};
IFormatCondition condition1 = (IFormatCondition) range.FormatConditions.Add(FormatConditionType.CellValue, FormatConditionOperator.Between, 1, 5);
condition1.Interior.Color = Color.Yellow;
object condition = range.FormatConditions[0];
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | if |