Class Index
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The Index widget gives you an index for fast access to whichever group of the other UI items one might have. Inherits Layout.
C#Copypublic class Index : Layout, IAccessibleObject
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic Index(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | The parent is a given container, which will be attached by Index as a child. It's EvasObject type. |
API Level: preview
Properties
AutoHide
Sets or gets whether the auto hiding feature is enabled or not for a given index widget.
Declaration
C#Copypublic bool AutoHide { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
API Level: preview
Delay
Sets a delay change time for the index object. The delay time is 0.2 seconds by default.
Declaration
C#Copypublic double Delay { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
API Level: preview
Declaration
C#Copypublic bool IndicatorVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
API Level: preview
Declaration
C#Copypublic bool IsHorizontal { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
API Level: preview
Declaration
C#Copypublic int Level { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
OmitEnabled
Sets or gets whether the omit feature is enabled or not for a given index widget.
Declaration
C#Copypublic bool OmitEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
API Level: preview
Priority
Controls the standard_priority group of the index. Priority group will be shown as many items as it can, and other group will be shown for one character only.
Declaration
C#Copypublic int Priority { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: preview
Declaration
C#Copypublic IndexItem SelectedItem { get; }
Property Value
Type | Description |
---|---|
IndexItem |
API Level: preview
Methods
Declaration
C#Copypublic IndexItem Append(string label)
Parameters
Type | Name | Description |
---|---|---|
System.String | label | The label for which the item should be indexed. |
Returns
Type | Description |
---|---|
IndexItem | An object to the IndexItem if added, or null on errors. |
API Level: preview
Declaration
C#Copypublic void Clear()
API Level: preview
Declaration
C#Copyprotected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | Parent EvasObject. |
Returns
Type | Description |
---|---|
System.IntPtr | Handle IntPtr. |
Overrides
API Level: preview
InsertAfter(String, IndexItem)
Inserts a new item into the index object after the item after.
Declaration
C#Copypublic IndexItem InsertAfter(string label, IndexItem after)
Parameters
Type | Name | Description |
---|---|---|
System.String | label | The label for which the item should be indexed. |
IndexItem | after | The index item to insert after. |
Returns
Type | Description |
---|---|
IndexItem | An object to the IndexItem if added, or null on errors. |
API Level: preview
InsertBefore(String, IndexItem)
Inserts a new item into the index object before the item before.
Declaration
C#Copypublic IndexItem InsertBefore(string label, IndexItem before)
Parameters
Type | Name | Description |
---|---|---|
System.String | label | The label for which the item should be indexed. |
IndexItem | before | The index item to insert after. |
Returns
Type | Description |
---|---|
IndexItem | An object to the IndexItem if added, or null on errors. |
API Level: preview
Declaration
C#Copypublic IndexItem Prepend(string label)
Parameters
Type | Name | Description |
---|---|---|
System.String | label | The label for which the item should be indexed. |
Returns
Type | Description |
---|---|
IndexItem | A handle to the item if added, or null on errors. |
API Level: preview
Declaration
C#Copypublic void Update(int level)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | level | The index level (one of 0 or 1) where the changes were made. |
API Level: preview
Events
Declaration
C#Copypublic event EventHandler Changed
Event Type
Type | Description |
---|---|
System.EventHandler |