from aspose.cells import Workbook # For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET # Instantiating a Workbook object workbook = Workbook() # Adding a new worksheet to the Excel object i = workbook.worksheets.add() # Obtaining the reference of the newly added worksheet by passing its sheet index worksheet = workbook.worksheets[i] # Accessing the "A1" cell from the worksheet cell = worksheet.cells.get("A1") # Adding some value to the "A1" cell cell.put_value("Hello Aspose!") # Obtaining the style of the cell style = cell.get_style() # Setting subscript effect style.font.is_subscript = True # Applying the style to the cell cell.set_style(style) # Saving the Excel file workbook.save(dataDir + "out.xlsx")