Click or drag to resize

ItemListAddItem Method

Adds an item to the item list with specified text. Specify an icon, or use null as the icon for a list item with no icon.

If selectable is true, the list item will be selectable.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void AddItem(
	string text,
	Texture icon = null,
	bool selectable = true
)

Parameters

text
Type: SystemString

[Missing <param name="text"/> documentation for "M:Godot.ItemList.AddItem(System.String,Godot.Texture,System.Boolean)"]

icon (Optional)
Type: GodotTexture

[Missing <param name="icon"/> documentation for "M:Godot.ItemList.AddItem(System.String,Godot.Texture,System.Boolean)"]

selectable (Optional)
Type: SystemBoolean

[Missing <param name="selectable"/> documentation for "M:Godot.ItemList.AddItem(System.String,Godot.Texture,System.Boolean)"]

See Also