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