What are the deprecated APIs in XlsIO?
8 Dec 20231 minute to read
FillBackgroundRGB, FillBackground, FillForegroundRGB, and FillForeground APIs that were available under CellStyle are now deprecated, and Syncfusion XlsIO have now come up with new APIS called Color, ColorIndex, PatternColor, and PatternColorIndex. Please find the list below.
Old API |
New API |
---|---|
worksheet.Range["A1"].CellStyle.FillBackgroundRGB |
worksheet.Range["A1"].CellStyle.Color |
worksheet.Range["A1"].CellStyle.FillBackground |
worksheet.Range["A1"].CellStyle.ColorIndex |
worksheet.Range["A1"].CellStyle.FillForegroundRGB |
worksheet.Range["A1"].CellStyle.PatternColor |
worksheet.Range["A1"].CellStyle.FillForeground |
worksheet.Range["A1"].CellStyle.PatternColorIndex |