RichText.Insert

Insert(int, string)

在此实例的指定索引位置插入指定的字符串。

public RichText Insert(int startIndex, string value)
参数类型描述
startIndexInt32起始索引。
valueString值。

返回值

该 RichText。

异常

异常条件
ArgumentOutOfRangeException

另见


Insert(int, string, TextStyle)

在此实例的指定索引位置插入具有指定样式的指定字符串。

public RichText Insert(int startIndex, string value, TextStyle style)
参数类型描述
startIndexInt32起始索引。
valueString值。
styleTextStyle样式。

返回值

该 RichText。

异常

异常条件
ArgumentOutOfRangeException

另见