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


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

```cpp
StringBuilder * System::Text::StringBuilder::Insert(int index, const System::ArrayPtr<char_t> &chars, int startIndex, int charCount)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 索引 | int | 要插入字符的位置。 |
| chars | const System::ArrayPtr\<char_t\>\& | [Array](../../../system/array/) 用于插入切片的来源。 |
| startIndex | int | [Array](../../../system/array/) 切片起始索引。 |
| charCount | int | [Array](../../../system/array/) 切片长度。 |

### ReturnValue

此指针。

## 另见

* Class [StringBuilder](../)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [StringBuilder](../)
* Namespace [System::Text](../../)
* Library [Aspose.Page for C++](../../../)
## StringBuilder::Insert(int, char_t) method


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

```cpp
StringBuilder * System::Text::StringBuilder::Insert(int startIndex, char_t ch)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| startIndex | int | 要插入字符的位置。 |
| ch | char_t | 要插入的字符。 |

### ReturnValue

此指针。

## 另见

* Class [StringBuilder](../)
* Class [StringBuilder](../)
* Namespace [System::Text](../../)
* Library [Aspose.Page for C++](../../../)
## StringBuilder::Insert(int, const String\&) method


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

```cpp
StringBuilder * System::Text::StringBuilder::Insert(int startIndex, const String &str)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| startIndex | int | 要插入字符的位置。 |
| str | const String\& | [String](../../../system/string/) 插入。 |

### ReturnValue

此指针。

## 另见

* Class [StringBuilder](../)
* Class [String](../../../system/string/)
* Class [StringBuilder](../)
* Namespace [System::Text](../../)
* Library [Aspose.Page for C++](../../../)
## StringBuilder::Insert(int, T) method


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

```cpp
template<typename T> std::enable_if<std::is_arithmetic<T>::value, StringBuilder *>::type System::Text::StringBuilder::Insert(int startIndex, T value)
```


| Parameter | 描述 |
| --- | --- |
| Parameter | 类型。 |

| Parameter | Type | 描述 |
| --- | --- | --- |
| startIndex | int | 要插入字符的位置。 |
| value | T | 要格式化并插入的值。 |

### ReturnValue

此指针。

## 另见

* Class [StringBuilder](../)
* Class [StringBuilder](../)
* Namespace [System::Text](../../)
* Library [Aspose.Page for C++](../../../)
## StringBuilder::Insert(int32_t, const String\&, int32_t) method


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

```cpp
StringBuilder * System::Text::StringBuilder::Insert(int32_t index, const String &value, int32_t count)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 索引 | int32_t | 要插入字符的位置。 |
| value | const String\& | [String](../../../system/string/) 插入。 |
| count | int32_t | 要重复 **value** 字符串的次数。 |

### ReturnValue

此指针。

## 另见

* Class [StringBuilder](../)
* Class [String](../../../system/string/)
* Class [StringBuilder](../)
* Namespace [System::Text](../../)
* Library [Aspose.Page for C++](../../../)
