CellCharacters Method
Returns a Characters object that represents a range of characters within the cell text.

Namespace: Aspose.Cells
Assembly: Aspose.Cells (in Aspose.Cells.dll) Version: 19.11.0.0 (19.11)
Syntax
public FontSetting Characters(
	int startIndex,
	int length
)

Parameters

startIndex
Type: SystemInt32
The index of the start of the character.
length
Type: SystemInt32
The number of characters.

Return Value

Type: FontSetting
Characters object.
Remarks
This method only works on cell with string value.
Examples
[C#]
excel.Worksheets[0].Cells["A1"].PutValue("Helloworld");
excel.Worksheets[0].Cells["A1"].Characters(5, 5).Font.IsBold = true;
excel.Worksheets[0].Cells["A1"].Characters(5, 5).Font.Color = Color.Blue;

[Visual Basic]
excel.Worksheets(0).Cells("A1").PutValue("Helloworld")
excel.Worksheets(0).Cells("A1").Characters(5, 5).Font.IsBold = True
excel.Worksheets(0).Cells("A1").Characters(5, 5).Font.Color = Color.Blue
See Also