Class TextEdit_CB_GD_Extension
- Namespace
- Godot
- Assembly
- com.cobilas.godot.utility.dll
Provides extension methods for Godot's Godot.TextEdit class, allowing string operations to be performed fluently and efficiently using StringBuilder internally.
public static class TextEdit_CB_GD_Extension
- Inheritance
-
TextEdit_CB_GD_Extension
- Inherited Members
Remarks
This class uses a shared static StringBuilder for better performance in frequent text manipulation operations in TextEdits.
Methods
Append(TextEdit?, bool)
public static TextEdit Append(this TextEdit? L, bool value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, byte)
Adds a byte value to the Godot.TextEdit text.
public static TextEdit Append(this TextEdit? L, byte value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, char)
Adds a character to the Godot.TextEdit text.
public static TextEdit Append(this TextEdit? L, char value)
Parameters
LTextEditGodot.TextEdit target (can be null)
valuecharCharacter to be added
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, char, int)
Adds a character repeated a specified number of times to the text of Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, char value, int repeatCount)
Parameters
LTextEditGodot.TextEdit target (can be null)
valuecharCharacter to be added
repeatCountintNumber of repetitions of the character
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, char[])
Adds a char[] to the text of the Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, char[] value)
Parameters
LTextEditGodot.TextEdit target (can be null)
valuechar[]char[] to be added
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, char[], int, int)
Adds a part of a char[] to the text of the Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, char[] value, int startIndex, int charCount)
Parameters
LTextEditGodot.TextEdit target (can be null)
valuechar[]char[] of origin
startIndexintStarting index in Array
charCountintNumber of characters to add
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, decimal)
Adds a decimal value to the text of Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, decimal value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, double)
Adds a double value to the text of Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, double value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, short)
Adds a short value to the text of Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, short value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, int)
Adds a int value to the text of Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, int value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, long)
Adds a long value to the text of Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, long value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, object)
public static TextEdit Append(this TextEdit? L, object value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, sbyte)
Adds a sbyte value to the text of Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, sbyte value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, float)
Adds a float value to the text of the Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, float value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, string)
Adds a string to the text of the Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, string value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, string, int, int)
Adds a substring to the Godot.TextEdit text.
public static TextEdit Append(this TextEdit? L, string value, int startIndex, int count)
Parameters
LTextEditGodot.TextEdit target (can be null)
valuestringstring source
startIndexintStarting index in source string
countintNumber of characters to add
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, ushort)
Adds a ushort value to the text of the Godot.TextEdit.
public static TextEdit Append(this TextEdit? L, ushort value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, uint)
Adds a uint value to the Godot.TextEdit text.
public static TextEdit Append(this TextEdit? L, uint value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Append(TextEdit?, ulong)
Adds a ulong value to the Godot.TextEdit text.
public static TextEdit Append(this TextEdit? L, ulong value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
AppendFormat(TextEdit?, IFormatProvider, string, object)
Adds formatted text to TextEdit using a specific format provider.
public static TextEdit AppendFormat(this TextEdit? L, IFormatProvider provider, string format, object arg0)
Parameters
LTextEditGodot.TextEdit target (can be null)
providerIFormatProviderCulture-specific format provider
formatstringstring format
arg0objectFirst argument to be formatted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
AppendFormat(TextEdit?, IFormatProvider, string, object, object)
Adds formatted text to TextEdit using a specific format provider.
public static TextEdit AppendFormat(this TextEdit? L, IFormatProvider provider, string format, object arg0, object arg1)
Parameters
LTextEditGodot.TextEdit target (can be null)
providerIFormatProviderCulture-specific format provider
formatstringstring format
arg0objectFirst argument to be formatted
arg1objectSecond argument to be formatted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
AppendFormat(TextEdit?, IFormatProvider, string, object, object, object)
Adds formatted text to TextEdit using a specific format provider.
public static TextEdit AppendFormat(this TextEdit? L, IFormatProvider provider, string format, object arg0, object arg1, object arg2)
Parameters
LTextEditGodot.TextEdit target (can be null)
providerIFormatProviderCulture-specific format provider
formatstringstring format
arg0objectFirst argument to be formatted
arg1objectSecond argument to be formatted
arg2objectThird argument to be formatted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
AppendFormat(TextEdit?, IFormatProvider, string, params object[])
Adds formatted text to TextEdit using a specific format provider.
public static TextEdit AppendFormat(this TextEdit? L, IFormatProvider provider, string format, params object[] args)
Parameters
LTextEditGodot.TextEdit target (can be null)
providerIFormatProviderCulture-specific format provider
formatstringstring format
argsobject[]Array of arguments to be formatted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
AppendFormat(TextEdit?, string, object)
Adds formatted text to TextEdit using a specific format provider.
public static TextEdit AppendFormat(this TextEdit? L, string format, object arg0)
Parameters
LTextEditGodot.TextEdit target (can be null)
formatstringstring format
arg0objectFirst argument to be formatted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
AppendFormat(TextEdit?, string, object, object)
Adds formatted text to TextEdit using a specific format provider.
public static TextEdit AppendFormat(this TextEdit? L, string format, object arg0, object arg1)
Parameters
LTextEditGodot.TextEdit target (can be null)
formatstringstring format
arg0objectFirst argument to be formatted
arg1objectSecond argument to be formatted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
AppendFormat(TextEdit?, string, object, object, object)
Adds formatted text to TextEdit using a specific format provider.
public static TextEdit AppendFormat(this TextEdit? L, string format, object arg0, object arg1, object arg2)
Parameters
LTextEditGodot.TextEdit target (can be null)
formatstringstring format
arg0objectFirst argument to be formatted
arg1objectSecond argument to be formatted
arg2objectThird argument to be formatted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
AppendFormat(TextEdit?, string, params object[])
Adds formatted text to TextEdit using a specific format provider.
public static TextEdit AppendFormat(this TextEdit? L, string format, params object[] args)
Parameters
LTextEditGodot.TextEdit target (can be null)
formatstringstring format
argsobject[]Array of arguments to be formatted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
AppendJoin(TextEdit?, char, object[])
Adds a string created by joining a object[] with a character separator.
public static TextEdit AppendJoin(this TextEdit? L, char separator, object[] values)
Parameters
LTextEditGodot.TextEdit target (can be null)
separatorcharSeparator between elements
valuesobject[]object[] to be joined
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
AppendJoin(TextEdit?, char, string[])
Adds a string created by joining a string[] with a character separator.
public static TextEdit AppendJoin(this TextEdit? L, char separator, string[] values)
Parameters
LTextEditGodot.TextEdit target (can be null)
separatorcharSeparator between elements
valuesstring[]string[] to be joined
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
AppendJoin(TextEdit?, string, object[])
Adds a string created by joining a object[] with a separator.
public static TextEdit AppendJoin(this TextEdit? L, string separator, object[] values)
Parameters
LTextEditGodot.TextEdit target (can be null)
separatorstringSeparator between elements
valuesobject[]object[] to be joined
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
AppendJoin(TextEdit?, string, string[])
Adds a string created by joining a string[] with a separator.
public static TextEdit AppendJoin(this TextEdit? L, string separator, string[] values)
Parameters
LTextEditGodot.TextEdit target (can be null)
separatorstringSeparator between elements
valuesstring[]string[] to be joined
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
AppendJoin<T>(TextEdit?, char, IEquatable<T>)
Adds a string created by joining a collection of objects with a character separator.
public static TextEdit AppendJoin<T>(this TextEdit? L, char separator, IEquatable<T> values)
Parameters
LTextEditGodot.TextEdit target (can be null)
separatorcharSeparator between elements
valuesIEquatable<T>Collection of objects to be joined
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Type Parameters
TType of elements in the collection
AppendJoin<T>(TextEdit?, string, IEquatable<T>)
Adds a string created by joining a collection of objects with a separator.
public static TextEdit AppendJoin<T>(this TextEdit? L, string separator, IEquatable<T> values)
Parameters
LTextEditGodot.TextEdit target (can be null)
separatorstringSeparator between elements
valuesIEquatable<T>Collection of objects to be joined
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Type Parameters
TType of elements in the collection
AppendLine(TextEdit?)
Adds a line break to the text of Godot.TextEdit.
public static TextEdit AppendLine(this TextEdit? L)
Parameters
LTextEditGodot.TextEdit target (can be null)
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
AppendLine(TextEdit?, object)
Adds the string representation of a object followed by a line break to the text of the Godot.TextEdit.
public static TextEdit AppendLine(this TextEdit? L, object value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
AppendLine(TextEdit?, string)
Adds a string followed by a line break to the text of the Godot.TextEdit.
public static TextEdit AppendLine(this TextEdit? L, string value)
Parameters
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
ClearText(TextEdit?)
Clears all text from Godot.TextEdit.
public static TextEdit ClearText(this TextEdit? L)
Parameters
LTextEditGodot.TextEdit target (can be null)
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, bool)
Inserts the string representation of a bool value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, bool value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valueboolbool value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, byte)
Inserts the string representation of a byte value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, byte value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valuebytebyte value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, char)
Inserts a char into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, char value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valuecharchar value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, char[])
Inserts a char[] into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, char[] value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valuechar[]char[] value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, char[], int, int)
Inserts a portion of a char[] into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, char[] value, int startIndex, int charCount)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valuechar[]char[] of origin
startIndexintStarting index in Array
charCountintNumber of characters to enter
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, decimal)
Inserts the string representation of a decimal value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, decimal value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valuedecimaldecimal value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, double)
Inserts the string representation of a double value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, double value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valuedoubledouble value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, short)
Inserts the string representation of a short value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, short value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valueshortshort value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, int)
Inserts the string representation of a int value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, int value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valueintint value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, long)
Inserts the string representation of a long value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, long value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valuelonglong value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, object)
public static TextEdit Insert(this TextEdit? L, int index, object value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valueobjectobject value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, sbyte)
Inserts the string representation of a sbyte value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, sbyte value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valuesbytesbyte value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, float)
Inserts the string representation of a float value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, float value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valuefloatfloat value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, string)
Inserts a string into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, string value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valuestringstring value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, string, int)
Inserts a string repeated a specified number of times into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, string value, int count)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valuestringstring value to be inserted
countintNumber of repetitions
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, ushort)
Inserts the string representation of a ushort value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, ushort value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valueushortushort value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, uint)
Inserts the string representation of a uint value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, uint value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valueuintuint value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Insert(TextEdit?, int, ulong)
Inserts the string representation of a ulong value into the text of the Godot.TextEdit at the specified position.
public static TextEdit Insert(this TextEdit? L, int index, ulong value)
Parameters
LTextEditGodot.TextEdit target (can be null)
indexintPosition where to insert
valueulongulong value to be inserted
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Remove(TextEdit?, int, int)
Remove um número específico de caracteres do texto do TextEdit a partir da posição especificada.
public static TextEdit Remove(this TextEdit? L, int startIndex, int length)
Parameters
LTextEditGodot.TextEdit target (can be null)
startIndexintPosição inicial para remoção
lengthintNúmero de caracteres a remover
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Replace(TextEdit?, char, char)
Replaces all occurrences of one char with another in the text of the Godot.TextEdit.
public static TextEdit Replace(this TextEdit? L, char oldChar, char newChar)
Parameters
LTextEditGodot.TextEdit target (can be null)
oldCharcharchar to be replaced
newCharcharReplaced char
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Replace(TextEdit?, char, char, int, int)
Replaces all occurrences of one char with another in a specified portion of the text of the Godot.TextEdit.
public static TextEdit Replace(this TextEdit? L, char oldChar, char newChar, int startIndex, int count)
Parameters
LTextEditGodot.TextEdit target (can be null)
oldCharcharchar to be replaced
newCharcharReplaced char
startIndexintStarting position for search
countintNumber of characters to consider
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Replace(TextEdit?, string, string)
Replaces all occurrences of one string with another in the text of the Godot.TextEdit.
public static TextEdit Replace(this TextEdit? L, string oldValue, string newValue)
Parameters
LTextEditGodot.TextEdit target (can be null)
oldValuestringstring to be replaced
newValuestringReplaced string
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null
Replace(TextEdit?, string, string, int, int)
Replaces all occurrences of one string with another in a specified portion of the text of the Godot.TextEdit.
public static TextEdit Replace(this TextEdit? L, string oldValue, string newValue, int startIndex, int count)
Parameters
LTextEditGodot.TextEdit target (can be null)
oldValuestringstring to be replaced
newValuestringReplaced string
startIndexintStarting position for search
countintNumber of characters to consider
Returns
- TextEdit
The Godot.TextEdit itself to allow chained calls
Exceptions
- ArgumentNullException
Thrown when Godot.TextEdit is null