Click or drag to resize

TextEditCursorSetLine Method

Moves the cursor at the specified line index.

If adjust_viewport is set to true, the viewport will center at the cursor position after the move occurs.

If can_be_hidden is set to true, the specified line can be hidden using SetLineAsHidden(Int32, Boolean).

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void CursorSetLine(
	int line,
	bool adjustViewport = true,
	bool canBeHidden = true,
	int wrapIndex = 0
)

Parameters

line
Type: SystemInt32

[Missing <param name="line"/> documentation for "M:Godot.TextEdit.CursorSetLine(System.Int32,System.Boolean,System.Boolean,System.Int32)"]

adjustViewport (Optional)
Type: SystemBoolean

[Missing <param name="adjustViewport"/> documentation for "M:Godot.TextEdit.CursorSetLine(System.Int32,System.Boolean,System.Boolean,System.Int32)"]

canBeHidden (Optional)
Type: SystemBoolean

[Missing <param name="canBeHidden"/> documentation for "M:Godot.TextEdit.CursorSetLine(System.Int32,System.Boolean,System.Boolean,System.Int32)"]

wrapIndex (Optional)
Type: SystemInt32

[Missing <param name="wrapIndex"/> documentation for "M:Godot.TextEdit.CursorSetLine(System.Int32,System.Boolean,System.Boolean,System.Int32)"]

See Also