##  replace(self, old_value, new_value) {#str-str}
替换文本。



```python

def replace(self, old_value, new_value):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| old_value | str |舊文。|
| new_value | str |新文本。|


##  replace(self, index, count, text) {#int-int-str}
替换文本。



```python

def replace(self, index, count, text):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| index | int |起始索引。|
| count | int |字符数。|
| text | str |正文。|



### 也可以看看
* 模块[`aspose.cells.drawing.texts`](../../)
* 类 [`FontSettingCollection`](/cells/python-net/zh/aspose.cells.drawing.texts/fontsettingcollection)
