RichText.Remove

Remove(int, int)

从指定位置开始,删除当前实例中指定数量的字符。

public RichText Remove(int startIndex, int count)
参数类型描述
startIndexInt32起始索引。
计数Int32计数。

返回值

RichText

异常

异常条件
ArgumentOutOfRangeException

另请参阅


Remove(int)

从指定位置开始一直到最后位置,删除当前实例中的所有字符。

public RichText Remove(int startIndex)
参数类型描述
startIndexInt32起始索引。

返回值

RichText

异常

异常条件
ArgumentOutOfRangeException

另请参阅