Aspose.Cells.Workbook ExcelApp = new Workbook();
Aspose.Cells.Worksheet wrkSheet = ExcelApp.Worksheets[0];
//Accessing the "A1" cell from the worksheet
Cell cell = wrkSheet.Cells["A1"];
//Adding some value to the "A1" cell
cell.PutValue("VisitAspose!");
cell.Style.IsTextWrapped = true;
//Setting the font of selected characters to bold
cell.Characters(6,7).Font.IsBold=true;
//Setting the font color of selected characters to blue
cell.Characters(6,7).Font.Color=Color.Blue;
//Accessing the "A2" cell from the worksheet
cell = wrkSheet.Cells["A2"];
cell.Copy(cell);
//Adding some value to the "A1" cell
cell.PutValue("VisitAspose123!");
cell.Style.IsTextWrapped = true;
//Setting the font of selected characters to bold
cell.Characters(6,7).Font.IsBold=true;
//Setting the font color of selected characters to blue
cell.Characters(6,7).Font.Color=Color.Blue;
//Saving the Excel file
ExcelApp.Save("C:\\TC.xls",FileFormatType.Default);
Output of Cell:
A 1 VisitAspose! 2. #N/A |