Class SelectGroup
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 6
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.
C#Copypublic abstract class SelectGroup : object
- Inheritance
-
SelectGroup
- Derived
Constructors
Declaration
C#Copyprotected SelectGroup()
API Level: 6
Properties
Declaration
C#Copypublic int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 6
View Source
EnableMultiSelection
EnableMultiSelection is used to indicate if SelectGroup can select multiple SelectButtons.
Declaration
C#Copypublic bool EnableMultiSelection { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Declaration
C#Copyprotected List<SelectButton> ItemGroup { get; }
Property Value
Type | Description |
---|---|
List<SelectButton> |
API Level: 6
View Source
SelectedIndex
Get the index of currently or latest selected item. If no item is selected, returns -1.
Declaration
C#Copypublic int SelectedIndex { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 6
Methods
Declaration
C#Copypublic void AddAllToView(View target)
Parameters
Type | Name | Description |
---|---|---|
View | target | The target view. |
Declaration
C#Copyprotected void AddSelection(SelectButton selection)
Parameters
Type | Name | Description |
---|---|---|
SelectButton | selection | The selection to be added to the end of the SelectionGroup |
API Level: 6
Declaration
C#Copypublic bool Contains(SelectButton selection)
Parameters
Type | Name | Description |
---|---|---|
SelectButton | selection | selection in the SelectionGroup |
Returns
Type | Description |
---|---|
Boolean | true if selection is found in the SelectionGroup; otherwise, false. |
API Level: 6
Declaration
C#Copypublic int GetIndex(SelectButton selection)
Parameters
Type | Name | Description |
---|---|---|
SelectButton | selection | selection in the SelectionGroup |
Returns
Type | Description |
---|---|
Int32 | The index of the selection in selection group if found; otherwise, return -1 |
API Level: 6
Declaration
C#Copyprotected virtual void OnSelectedChanged(SelectButton selection)
Parameters
Type | Name | Description |
---|---|---|
SelectButton | selection | The selection selected by user |
Declaration
C#Copyprotected void RemoveSelection(SelectButton selection)
Parameters
Type | Name | Description |
---|---|---|
SelectButton | selection | The selection to remove from the SelectionGroup |
API Level: 6
Events
Declaration
C#Copypublic event EventHandler SelectedChanged
Event Type
Type | Description |
---|---|
EventHandler |