We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

StyleCollection class doesn't exist in Aspose

Can you please check why StyleCollection class doesn’t exist in Aspose version, whereas in version it exists? Our code has a dependency of that class - can you please help?
image.png (107.1 KB)
image.png (180.6 KB)


Please note, we removed Workbook.Styles attribute and StyleCollection class some years ago (we obsoleted/removed these APIs from v8.3.x as it was announced in the Release Notes document). It is advised to use the Workbook.CreateStyle method to create and manipulate style for Workbook instance instead of creating a Style with StyleCollection.Add method. Moreover, Workbook.GetNamedStyle(string) method can be used to get named style instead of StyleCollection[string].

Hope, this helps a bit.