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

另请参阅