Table of Contents

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)

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

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

Parameters

L TextEdit

Godot.TextEdit target (can be null)

value bool

bool value to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value byte

byte value to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value char

Character 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

L TextEdit

Godot.TextEdit target (can be null)

value char

Character to be added

repeatCount int

Number 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

L TextEdit

Godot.TextEdit target (can be null)

value char[]

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

L TextEdit

Godot.TextEdit target (can be null)

value char[]

char[] of origin

startIndex int

Starting index in Array

charCount int

Number 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

L TextEdit

Godot.TextEdit target (can be null)

value decimal

decimal value to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value double

double value to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value short

short value to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value int

int value to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value long

long value to be added

Returns

TextEdit

The Godot.TextEdit itself to allow chained calls

Exceptions

ArgumentNullException

Thrown when Godot.TextEdit is null

Append(TextEdit?, object)

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

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

Parameters

L TextEdit

Godot.TextEdit target (can be null)

value object

object to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value sbyte

sbyte value to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value float

float value to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value string

string to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value string

string source

startIndex int

Starting index in source string

count int

Number 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

L TextEdit

Godot.TextEdit target (can be null)

value ushort

ushort value to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value uint

uint value to add

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

L TextEdit

Godot.TextEdit target (can be null)

value ulong

ulong value to be added

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

L TextEdit

Godot.TextEdit target (can be null)

provider IFormatProvider

Culture-specific format provider

format string

string format

arg0 object

First 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

L TextEdit

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

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

L TextEdit

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

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

L TextEdit

Godot.TextEdit target (can be null)

provider IFormatProvider

Culture-specific format provider

format string

string format

args object[]

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

L TextEdit

Godot.TextEdit target (can be null)

format string

string format

arg0 object

First 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

L TextEdit

Godot.TextEdit target (can be null)

format string

string format

arg0 object

First argument to be formatted

arg1 object

Second 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

L TextEdit

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

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

L TextEdit

Godot.TextEdit target (can be null)

format string

string format

args object[]

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

L TextEdit

Godot.TextEdit target (can be null)

separator char

Separator between elements

values object[]

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

L TextEdit

Godot.TextEdit target (can be null)

separator char

Separator between elements

values string[]

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

L TextEdit

Godot.TextEdit target (can be null)

separator string

Separator between elements

values object[]

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

L TextEdit

Godot.TextEdit target (can be null)

separator string

Separator between elements

values string[]

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

L TextEdit

Godot.TextEdit target (can be null)

separator char

Separator between elements

values IEquatable<T>

Collection of objects to be joined

Returns

TextEdit

The Godot.TextEdit itself to allow chained calls

Type Parameters

T

Type 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

L TextEdit

Godot.TextEdit target (can be null)

separator string

Separator between elements

values IEquatable<T>

Collection of objects to be joined

Returns

TextEdit

The Godot.TextEdit itself to allow chained calls

Type Parameters

T

Type 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

L TextEdit

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

L TextEdit

Godot.TextEdit target (can be null)

value object

object to be added

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

L TextEdit

Godot.TextEdit target (can be null)

value string

string to be added

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

L TextEdit

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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value bool

bool 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value byte

byte 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value char

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

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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value char[]

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

L TextEdit

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

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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value decimal

decimal 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value double

double 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value short

short 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value int

int 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value long

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

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

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

Parameters

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value object

object 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value sbyte

sbyte 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value float

float 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value string

string 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value string

string value to be inserted

count int

Number 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value ushort

ushort 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value uint

uint 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

L TextEdit

Godot.TextEdit target (can be null)

index int

Position where to insert

value ulong

ulong 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

L TextEdit

Godot.TextEdit target (can be null)

startIndex int

Posição inicial para remoção

length int

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

L TextEdit

Godot.TextEdit target (can be null)

oldChar char

char to be replaced

newChar char

Replaced 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

L TextEdit

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

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

L TextEdit

Godot.TextEdit target (can be null)

oldValue string

string to be replaced

newValue string

Replaced 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

L TextEdit

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

TextEdit

The Godot.TextEdit itself to allow chained calls

Exceptions

ArgumentNullException

Thrown when Godot.TextEdit is null