Insert()
Contents
[
Hide
]StringBuilder::Insert(int, const String&) method
Inserts string into builder’s fixed position.
StringBuilder * System::Text::StringBuilder::Insert(int startIndex, const String &str)
Arguments
Parameter | Type | Description |
---|---|---|
startIndex | int | Position to insert characters into. |
str | const String& | String to insert. |
Return Value
This pointer.
StringBuilder::Insert(int32_t, const String&, int32_t) method
Inserts repeated string into builder’s fixed position.
StringBuilder * System::Text::StringBuilder::Insert(int32_t index, const String &value, int32_t count)
Arguments
Parameter | Type | Description |
---|---|---|
index | int32_t | Position to insert characters into. |
value | const String& | String to insert. |
count | int32_t | How many times to repeat value string. |
Return Value
This pointer.
StringBuilder::Insert(int, char_t) method
Inserts character into builder’s fixed position.
StringBuilder * System::Text::StringBuilder::Insert(int startIndex, char_t ch)
Arguments
Parameter | Type | Description |
---|---|---|
startIndex | int | Position to insert characters into. |
ch | char_t | Character to insert. |
Return Value
This pointer.
StringBuilder::Insert(int, const System::ArrayPtr<char_t>&, int, int) method
Inserts characters into builder’s fixed position.
StringBuilder * System::Text::StringBuilder::Insert(int index, const System::ArrayPtr<char_t> &chars, int startIndex, int charCount)
Arguments
Parameter | Type | Description |
---|---|---|
index | int | Position to insert characters into. |
chars | const System::ArrayPtr<char_t>& | Array to insert slice from. |
startIndex | int | Array slice beginning index. |
charCount | int | Array slice length. |
Return Value
This pointer.
StringBuilder::Insert(int, T) method
Inserts value into builder’s fixed position.
template<typename T> std::enable_if<std::is_arithmetic<T>::value, StringBuilder *>::type System::Text::StringBuilder::Insert(int startIndex, T value)
Template parameters
Parameter | Description |
---|---|
Parameter | type. |
Arguments
Parameter | Type | Description |
---|---|---|
startIndex | int | Position to insert characters into. |
value | T | Value to format and insert. |
Return Value
This pointer.
See Also
- Typedef ArrayPtr
- Class StringBuilder
- Class String
- Namespace System::Text
- Library Aspose.Slides