System::Text::StringBuilder::Insert 方法

StringBuilder::Insert(int, const System::ArrayPtr<char_t>&, int, int) method

在构建器的固定位置插入字符序列。

StringBuilder * System::Text::StringBuilder::Insert(int index, const System::ArrayPtr<char_t> &chars, int startIndex, int charCount)
参数类型描述
索引int要插入字符的位置。
charsconst System::ArrayPtr<char_t>&Array 要插入切片的来源。
startIndexintArray 切片起始索引。
charCountintArray 切片长度。

ReturnValue

此指针。

另见

StringBuilder::Insert(int, char_t) method

在构建器的固定位置插入字符。

StringBuilder * System::Text::StringBuilder::Insert(int startIndex, char_t ch)
参数类型描述
startIndexint要插入字符的位置。
chchar_t要插入的字符。

ReturnValue

此指针。

另见

StringBuilder::Insert(int, const String&) method

在构建器的固定位置插入字符串。

StringBuilder * System::Text::StringBuilder::Insert(int startIndex, const String &str)
参数类型描述
startIndexint要插入字符的位置。
strconst String&要插入的String

ReturnValue

此指针。

另见

StringBuilder::Insert(int, T) method

在构建器的固定位置插入值。

template<typename T> std::enable_if<std::is_arithmetic<T>::value, StringBuilder *>::type System::Text::StringBuilder::Insert(int startIndex, T value)
参数描述
参数类型。
参数类型描述
startIndexint要插入字符的位置。
T要格式化并插入的值。

ReturnValue

此指针。

另见

StringBuilder::Insert(int32_t, const String&, int32_t) method

在构建器的固定位置插入重复字符串。

StringBuilder * System::Text::StringBuilder::Insert(int32_t index, const String &value, int32_t count)
参数类型描述
索引int32_t要插入字符的位置。
valueconst String&要插入的String
countint32_t要重复 value 字符串的次数。

ReturnValue

此指针。

另见