Class ListItem
Represents a list item with a name, text, and a callback function for selection.
Inherited Members
Namespace: Genesis.UI
Assembly: Genesis.dll
Syntax
public class ListItem
Constructors
ListItem(string, string, ListItemBehavior)
Creates a new instance of the ListItem class.
Declaration
public ListItem(string name, string text, ListItemBehavior func)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the list item. |
string | text | The text content of the list item. |
ListItemBehavior | func | The callback function invoked when the item is selected. |
Properties
Name
Gets or sets the name of the list item.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
OnSelect
Gets or sets the callback function invoked when the item is selected.
Declaration
public ListItemBehavior OnSelect { get; set; }
Property Value
Type | Description |
---|---|
ListItemBehavior |
Text
Gets or sets the text content of the list item.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |