M_Cyjb_StringView_Remove_1 - CYJB/Cyjb GitHub Wiki

StringView.Remove 方法 (Int32, Int32)

返回删除当前字符串视图中指定位置之后指定个数字符的新字符串视图。

Namespace: Cyjb
Assembly: Cyjb (in Cyjb.dll) Version: 1.0.23+7750dd8e971297c5fa962a3bee37fb78f72793f6

语法

C#

public StringView Remove(
	int startIndex,
	int count
)

参数

 

startIndex
Type: System.Int32
要开始删除字符的索引。
count
Type: System.Int32
要删除的字符串个数。

返回值

Type: StringView
删除指定字符之后的新字符串视图。

Exceptions

 

异常 条件
ArgumentOutOfRangeException startIndex 小于 0
ArgumentOutOfRangeException startIndex + count 不表示当前字符串视图中的有效位置。

参见

Reference

StringView 结构
Remove 重载
Cyjb 命名空间

⚠️ **GitHub.com Fallback** ⚠️