Represents a range of characters within the cell text.
Example:
//Instantiating a Workbook object
$workbook = new 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
$worksheet = $workbook->getWorksheets()->get(0);
//Accessing the "A1" cell from the worksheet
$cell = $worksheet->getCells()->get("A1");
//Adding some value to the "A1" cell
$cell->putValue("Visit Aspose!");
//getting charactor
$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(cells\Color::getBlue());
Constructor Summary |
FontSetting(startIndex, length, sheets)
|
Property Getters/Setters Summary |
function | getFont() | |
|
Returns the font of this object.
|
function | getLength() | |
|
Gets the length of the characters.
|
function | getStartIndex() | |
|
Gets the start index of the characters.
|
function | getTextOptions() | |
|
Returns the text options.
|
function | getType() | |
|
Gets the type of text node.
|
Method Summary |
function | setWordArtStyle(style) | |
Sets the preset WordArt style.
|
FontSetting
function FontSetting(startIndex, length, sheets)
- Parameters:
startIndex: Number
- length: Number
- sheets: WorksheetCollection
-
Property Getters/Setters Detail |
getType : TextNodeType | |
function getType()
|
-
Gets the type of text node.
getStartIndex : Number | |
function getStartIndex()
|
-
Gets the start index of the characters.
getLength : Number | |
function getLength()
|
-
Gets the length of the characters.
getFont : Font | |
function getFont()
|
-
Returns the font of this object.
getTextOptions : TextOptions | |
function getTextOptions()
|
-
Returns the text options.
setWordArtStyle | |
function setWordArtStyle(style) |
-
Sets the preset WordArt style.
Only for the text of shape/chart.
- Parameters:
style: Number
- A PresetWordArtStyle value. The preset WordArt style.
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.