Class SelectGroup
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
SelectionGroup is the base class of CheckBoxGroup and RadioButtonGroup. It defines a group that is set of selections and enables the user to choose one or multiple selection.
public abstract class SelectGroup
- Inheritance
-
objectSelectGroup
- Derived
Constructors
View SourceSelectGroup()
Construct SelectionGroup
Declaration
protected SelectGroup()
Properties
View SourceCount
Get the number of items in the SelectionGroup.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
int |
EnableMultiSelection
EnableMultiSelection is used to indicate if SelectGroup can select multiple SelectButtons.
Declaration
public bool EnableMultiSelection { get; set; }
Property Value
Type | Description |
---|---|
bool |
ItemGroup
Selection group composed of items
Declaration
protected List<SelectButton> ItemGroup { get; }
Property Value
Type | Description |
---|---|
List<><SelectButton> |
SelectedIndex
Get the index of currently or latest selected item. If no item is selected, returns -1.
Declaration
public int SelectedIndex { get; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceAddAllToView(View)
Adds all existing items in the group to the View.
Declaration
public void AddAllToView(View target)
Parameters
Type | Name | Description |
---|---|---|
View | target | The target view. |
AddSelection(SelectButton)
Adds an selection to the end of the SelectionGroup
Declaration
protected void AddSelection(SelectButton selection)
Parameters
Type | Name | Description |
---|---|---|
SelectButton | selection | The selection to be added to the end of the SelectionGroup |
Contains(SelectButton)
Determine whether selection is in the SelectionGroup
Declaration
public bool Contains(SelectButton selection)
Parameters
Type | Name | Description |
---|---|---|
SelectButton | selection | selection in the SelectionGroup |
Returns
Type | Description |
---|---|
bool | true if selection is found in the SelectionGroup; otherwise, false. |
GetIndex(SelectButton)
Get the index of given selection.
Declaration
public int GetIndex(SelectButton selection)
Parameters
Type | Name | Description |
---|---|---|
SelectButton | selection | selection in the SelectionGroup |
Returns
Type | Description |
---|---|
int | The index of the selection in selection group if found; otherwise, return -1 |
OnSelectedChanged(SelectButton)
Called when the state of Selected is changed.
Declaration
protected virtual void OnSelectedChanged(SelectButton selection)
Parameters
Type | Name | Description |
---|---|---|
SelectButton | selection | The selection selected by user |
RemoveSelection(SelectButton)
Removes an selection to the end of the SelectionGroup
Declaration
protected void RemoveSelection(SelectButton selection)
Parameters
Type | Name | Description |
---|---|---|
SelectButton | selection | The selection to remove from the SelectionGroup |
Events
View SourceSelectedChanged
An event for the item selected changed.
Declaration
public event EventHandler SelectedChanged
Event Type
Type | Description |
---|---|
EventHandler |