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#
Copy
public abstract class SelectGroup : object
Inheritance
SelectGroup
Derived

Constructors

View Source

SelectGroup()

Construct SelectionGroup

Declaration
C#
Copy
protected SelectGroup()
API Level: 6

Properties

View Source

Count

Get the number of items in the SelectionGroup.

Declaration
C#
Copy
public 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#
Copy
public bool EnableMultiSelection { get; set; }
Property Value
Type Description
Boolean
View Source

ItemGroup

Selection group composed of items

Declaration
C#
Copy
protected 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#
Copy
public int SelectedIndex { get; }
Property Value
Type Description
Int32
API Level: 6

Methods

View Source

AddAllToView(View)

Adds all existing items in the group to the View.

Declaration
C#
Copy
public void AddAllToView(View target)
Parameters
Type Name Description
View target

The target view.

View Source

AddSelection(SelectButton)

Adds an selection to the end of the SelectionGroup

Declaration
C#
Copy
protected void AddSelection(SelectButton selection)
Parameters
Type Name Description
SelectButton selection

The selection to be added to the end of the SelectionGroup

API Level: 6
View Source

Contains(SelectButton)

Determine whether selection is in the SelectionGroup

Declaration
C#
Copy
public 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
View Source

GetIndex(SelectButton)

Get the index of given selection.

Declaration
C#
Copy
public 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
View Source

OnSelectedChanged(SelectButton)

Called when the state of Selected is changed.

Declaration
C#
Copy
protected virtual void OnSelectedChanged(SelectButton selection)
Parameters
Type Name Description
SelectButton selection

The selection selected by user

View Source

RemoveSelection(SelectButton)

Removes an selection to the end of the SelectionGroup

Declaration
C#
Copy
protected void RemoveSelection(SelectButton selection)
Parameters
Type Name Description
SelectButton selection

The selection to remove from the SelectionGroup

API Level: 6

Events

View Source

SelectedChanged

An event for the item selected changed.

Declaration
C#
Copy
public event EventHandler SelectedChanged
Event Type
Type Description
EventHandler

Extension Methods