new FontSetting(startIndex, length, sheets)

Example

//Instantiating a Workbook object
var workbook = new aspose.cells.Workbook();
//Adding a new worksheet to the Excel object
workbook.getWorksheets().add();
//Obtaining the reference of the newly added worksheet by passing its sheet index
var worksheet = workbook.getWorksheets().get(0);
//Accessing the "A1" cell from the worksheet
var cell = worksheet.getCells().get("A1");
//Adding some value to the "A1" cell
cell.putValue("Visit Aspose!");
//getting charactor
var charactor = cell.characters(6, 7);
//Setting the font of selected characters to bold
charactor.getFont().setBold(true);
//Setting the font color of selected characters to blue
charactor.getFont().setColor(aspose.cells.Color.getBlue());
//Saving the Excel file
workbook.save("Book1.xls");

Parameters

Name Type Optional Description

startIndex

 

 

length

 

 

sheets

 

 

Methods

getFont()

Returns the font of this object.

getLength()

Gets the length of the characters.

getStartIndex()

Gets the start index of the characters.

getTextOptions()

Returns the text options.

getType()

Gets the type of text node.

setWordArtStyle(style)

Sets the preset WordArt style. Only for the text of shape/chart.

Parameter

Name Type Optional Description

style

Number

 

PresetWordArtStyle