Table of Contents

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)

Adds the string representation of a bool value to the Godot.Label text.

public static Label Append(this Label? L, bool value)

Parameters

L Label

Godot.Label target (can be null)

value bool

bool value to be added

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

L Label

Godot.Label target (can be null)

value byte

byte value to be added

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

L Label

Godot.Label target (can be null)

value char

Character 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

L Label

Godot.Label target (can be null)

value char

Character to be added

repeatCount int

Number 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

L Label

Godot.Label target (can be null)

value char[]

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

L Label

Godot.Label target (can be null)

value char[]

char[] of origin

startIndex int

Starting index in Array

charCount int

Number 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

L Label

Godot.Label target (can be null)

value decimal

decimal value to be added

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

L Label

Godot.Label target (can be null)

value double

double value to be added

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

L Label

Godot.Label target (can be null)

value short

short value to be added

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

L Label

Godot.Label target (can be null)

value int

int value to be added

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

L Label

Godot.Label target (can be null)

value long

long value to be added

Returns

Label

The Godot.Label itself to allow chained calls

Exceptions

ArgumentNullException

Thrown when Godot.Label is null

Append(Label?, object)

Adds the string representation of a object to the text of the Godot.Label.

public static Label Append(this Label? L, object value)

Parameters

L Label

Godot.Label target (can be null)

value object

object to be added

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

L Label

Godot.Label target (can be null)

value sbyte

sbyte value to be added

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

L Label

Godot.Label target (can be null)

value float

float value to be added

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

L Label

Godot.Label target (can be null)

value string

string to be added

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

L Label

Godot.Label target (can be null)

value string

string source

startIndex int

Starting index in source string

count int

Number 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

L Label

Godot.Label target (can be null)

value ushort

ushort value to be added

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

L Label

Godot.Label target (can be null)

value uint

uint value to add

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

L Label

Godot.Label target (can be null)

value ulong

ulong value to be added

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

L Label

Godot.Label target (can be null)

provider IFormatProvider

Culture-specific format provider

format string

string format

arg0 object

First 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

L Label

Godot.Label target (can be null)

provider IFormatProvider

Culture-specific format provider

format string

string format

arg0 object

First argument to be formatted

arg1 object

Second 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

L Label

Godot.Label target (can be null)

provider IFormatProvider

Culture-specific format provider

format string

string format

arg0 object

First argument to be formatted

arg1 object

Second argument to be formatted

arg2 object

Third 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

L Label

Godot.Label target (can be null)

provider IFormatProvider

Culture-specific format provider

format string

string format

args object[]

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

L Label

Godot.Label target (can be null)

format string

string format

arg0 object

First 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

L Label

Godot.Label target (can be null)

format string

string format

arg0 object

First argument to be formatted

arg1 object

Second 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

L Label

Godot.Label target (can be null)

format string

string format

arg0 object

First argument to be formatted

arg1 object

Second argument to be formatted

arg2 object

Third 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

L Label

Godot.Label target (can be null)

format string

string format

args object[]

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

L Label

Godot.Label target (can be null)

separator char

Separator between elements

values object[]

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

L Label

Godot.Label target (can be null)

separator char

Separator between elements

values string[]

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

L Label

Godot.Label target (can be null)

separator string

Separator between elements

values object[]

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

L Label

Godot.Label target (can be null)

separator string

Separator between elements

values string[]

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

L Label

Godot.Label target (can be null)

separator char

Separator between elements

values IEquatable<T>

Collection of objects to be joined

Returns

Label

The Godot.Label itself to allow chained calls

Type Parameters

T

Type 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

L Label

Godot.Label target (can be null)

separator string

Separator between elements

values IEquatable<T>

Collection of objects to be joined

Returns

Label

The Godot.Label itself to allow chained calls

Type Parameters

T

Type 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

L Label

Godot.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)

Adds the string representation of a object followed by a line break to the text of the Godot.Label.

public static Label AppendLine(this Label? L, object value)

Parameters

L Label

Godot.Label target (can be null)

value object

object to be added

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

L Label

Godot.Label target (can be null)

value string

string to be added

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

L Label

Godot.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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value bool

bool 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value byte

byte 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value char

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[])

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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value char[]

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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value char[]

char[] of origin

startIndex int

Starting index in Array

charCount int

Number 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value decimal

decimal 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value double

double 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value short

short 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value int

int 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value long

long 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)

Insere a representação em string de um object no texto do Godot.Label na posição especificada.

public static Label Insert(this Label? L, int index, object value)

Parameters

L Label

Godot.Label target (can be null)

index int

Position where to insert

value object

object 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value sbyte

sbyte 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value float

float 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value string

string 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value string

string value to be inserted

count int

Number 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value ushort

ushort 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value uint

uint 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

L Label

Godot.Label target (can be null)

index int

Position where to insert

value ulong

ulong 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

L Label

Godot.Label target (can be null)

startIndex int

Posição inicial para remoção

length int

Nú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

L Label

Godot.Label target (can be null)

oldChar char

char to be replaced

newChar char

Replaced 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

L Label

Godot.Label target (can be null)

oldChar char

char to be replaced

newChar char

Replaced char

startIndex int

Starting position for search

count int

Number 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

L Label

Godot.Label target (can be null)

oldValue string

string to be replaced

newValue string

Replaced 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

L Label

Godot.Label target (can be null)

oldValue string

string to be replaced

newValue string

Replaced string

startIndex int

Starting position for search

count int

Number of characters to consider

Returns

Label

The Godot.Label itself to allow chained calls

Exceptions

ArgumentNullException

Thrown when Godot.Label is null