
## format(self, start_index, length, font, flag) {#int-int-aspose.cells.Font-aspose.cells.StyleFlag}

Format the text with font setting.



```python

def format(self, start_index, length, font, flag):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| start_index | int | The start index. |
| length | int | The length. |
| font | aspose.cells.Font | The font. |
| flag | aspose.cells.StyleFlag | The flags of the font. |



### See Also
* module [`aspose.cells.drawing.texts`](../../)
* class [`FontSettingCollection`](/cells/python-net/aspose.cells.drawing.texts/fontsettingcollection)
