Click or drag to resize

TextEditSearch Method

Perform a search inside the text. Search flags can be specified in the TextEditSearchFlags enum.

Returns an empty PoolIntArray if no result was found. Otherwise, the result line and column can be accessed at indices specified in the TextEditSearchResult enum, e.g:

var result = search(key, flags, line, column)
if result.size() > 0:
    # Result found.
    var res_line = result[TextEdit.SEARCH_RESULT_LINE]
    var res_column = result[TextEdit.SEARCH_RESULT_COLUMN]

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public int[] Search(
	string key,
	uint flags,
	int fromLine,
	int fromColumn
)

Parameters

key
Type: SystemString

[Missing <param name="key"/> documentation for "M:Godot.TextEdit.Search(System.String,System.UInt32,System.Int32,System.Int32)"]

flags
Type: SystemUInt32

[Missing <param name="flags"/> documentation for "M:Godot.TextEdit.Search(System.String,System.UInt32,System.Int32,System.Int32)"]

fromLine
Type: SystemInt32

[Missing <param name="fromLine"/> documentation for "M:Godot.TextEdit.Search(System.String,System.UInt32,System.Int32,System.Int32)"]

fromColumn
Type: SystemInt32

[Missing <param name="fromColumn"/> documentation for "M:Godot.TextEdit.Search(System.String,System.UInt32,System.Int32,System.Int32)"]

Return Value

Type: Int32

[Missing <returns> documentation for "M:Godot.TextEdit.Search(System.String,System.UInt32,System.Int32,System.Int32)"]

See Also