--->FormatConditionCollection collection = localCell.GetFormatConditions();Int32 index = localSheet.ConditionalFormattings.Add();FormatConditionCollection clN = localSheet.ConditionalFormattings[index];CellArea areaN = new CellArea(); areaN.StartRow = cStyleStartCellRow; areaN.EndRow = endRowPosition; areaN.StartColumn = cStyleStartCellCol; areaN.EndColumn = startColPosition - 1;clN.AddArea(areaN);for (Int32 i = 0; i < collection.count; i++){Style ss = new Style(); Style ssX = new Style();if (i == 0){ss.BackgroundColor = System.Drawing.Color.White;ss.Font.Color = System.Drawing.Color.White;}else if ( i == 1 ){//ss.Borders[BorderType.BottomBorder].LineStyle = CellBorderType.None;}else{ss.Borders[BorderType.BottomBorder].LineStyle = CellBorderType.Thick;ss.Borders[BorderType.BottomBorder].Color = System.Drawing.Color.Red;}---> Int32 conditionIndexN = clN.AddCondition(FormatConditionType.Expression, OperatorType.None, collection.Formula1, collection.Formula2);FormatCondition fcN = clN[conditionIndexN]; fcN.Style = ss;}
After updating from Aspose 6.x to Aspose 8.x the above code breaks pointed by arrow. How do i do this in the latest version.
Now the GetFormatConditions() is returning a collection. And also collection.Formula1 and Formula2 are not exposed any more.