Class List
Definition
- Namespace:
- Elm
Sharp
- Assembly:
- ElmSharp.dll
It inherits Layout.
The List is a widget that aims to display a simple list item which has 2 icons, 1 text, and can be selected.
For more robust lists, Gen
C#
Copy
[Obsolete("This has been deprecated in API12")]
public class List : Layout, IAccessibleObject
- Inheritance
- Implements
Constructors
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public List(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
Evas |
parent | The parent is a given container, which will be attached by the list as a child. It's Evas |
Properties
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public ListMode Mode { get; set; }
Property Value
Type | Description |
---|---|
List |
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public ListItem SelectedItem { get; }
Property Value
Type | Description |
---|---|
List |
Methods
Append(string, EvasObject, EvasObject)
Appends a new item with a text and 2 icons to the end of a given list widget.
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public ListItem Append(string label, EvasObject leftIcon, EvasObject rightIcon)
Parameters
Type | Name | Description |
---|---|---|
string | label | The text for the item. |
Evas |
leftIcon | The left icon for the item. |
Evas |
rightIcon | The right icon for the item. |
Returns
Type | Description |
---|---|
List |
Return a new added list item that contains a text and 2 icons. |
See Also
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public ListItem Append(string label)
Parameters
Type | Name | Description |
---|---|---|
string | label | The text for the item. |
Returns
Type | Description |
---|---|
List |
Return a new added list item that contains a text. |
See Also
Clear()
Removes all the items from a given list widget. To delete just one item, use Delete().
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public void Clear()
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
Evas |
parent | Parent EvasObject. |
Returns
Type | Description |
---|---|
System. |
Handle IntPtr. |
Overrides
Prepend(string, EvasObject, EvasObject)
Prepends a new item with a text and 2 icons to the beginning of a given list widget.
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public ListItem Prepend(string label, EvasObject leftIcon, EvasObject rigthIcon)
Parameters
Type | Name | Description |
---|---|---|
string | label | The text for the item. |
Evas |
leftIcon | The left icon for the item. |
Evas |
rigthIcon | The right icon for the item. |
Returns
Type | Description |
---|---|
List |
Return a new added list item that contains a text and 2 icons. |
Prepend(string)
Prepends a new item with a text to the beginning of a given list widget.
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public ListItem Prepend(string label)
Parameters
Type | Name | Description |
---|---|---|
string | label | The text for the item. |
Returns
Type | Description |
---|---|
List |
Return a new added list item that contains a text. |
Update()
Starts the list. Called before running Show() on the list object. If not called, it won't display the list properly.
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public void Update()
Events
ItemActivated
ItemActivated is raised when a new list item is double-clicked or pressed (enter|return|spacebar).
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public event EventHandler<ListItemEventArgs> ItemActivated
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><List |
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public event EventHandler<ListItemEventArgs> ItemDoubleClicked
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><List |
ItemLongPressed
ItemLongPressed is raised when a list item is pressed for a certain amount of time. By default, it's 1 second.
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public event EventHandler<ListItemEventArgs> ItemLongPressed
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><List |
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public event EventHandler<ListItemEventArgs> ItemSelected
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><List |
Declaration
C#
Copy
[Obsolete("This has been deprecated in API12")]
public event EventHandler<ListItemEventArgs> ItemUnselected
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><List |