Class RadioButtonGroup
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
The RadioButtonGroup class is used to group together a set of RadioButton control It enables the user to select exclusively single radio button of group.
public class RadioButtonGroup : SelectGroup
- Inheritance
Constructors
View SourceRadioButtonGroup()
Construct RadioButtonGroup
Declaration
public RadioButtonGroup()
Fields
View SourceIsGroupHolderProperty
IsGroupHolderProperty
Declaration
public static readonly BindableProperty IsGroupHolderProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Methods
View SourceAdd(RadioButton)
Add RadioButton to the end of RadioButtonGroup.
Declaration
public void Add(RadioButton radio)
Parameters
Type | Name | Description |
---|---|---|
RadioButton | radio | The RadioButton to be added to the RadioButtonGroup |
GetIsGroupHolder(View)
Gets a RadioButtonGroup.IsGroupHolder property of a view.
Declaration
public static bool GetIsGroupHolder(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | The group holder. |
Returns
Type | Description |
---|---|
bool |
GetItem(int)
Get the RadioButton object at the specified index.
Declaration
public RadioButton GetItem(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | item index |
Returns
Type | Description |
---|---|
RadioButton | RadioButton |
GetRadioButtonGroup(View)
Gets a attached RadioButtonGroup for a view.
Declaration
public static RadioButtonGroup GetRadioButtonGroup(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | The group holder. |
Returns
Type | Description |
---|---|
RadioButtonGroup |
GetSelectedItem()
Get the RadioButton object at the currently selected. If no item selected, returns null.
Declaration
public RadioButton GetSelectedItem()
Returns
Type | Description |
---|---|
RadioButton | Currently selected radio button |
Remove(RadioButton)
Remove RadioButton from the RadioButtonGroup.
Declaration
public void Remove(RadioButton radio)
Parameters
Type | Name | Description |
---|---|---|
RadioButton | radio | The RadioButton to remove from the RadioButtonGroup |
SetIsGroupHolder(View, bool)
Sets a RadioButtonGroup.IsGroupHolder property for a view.
Declaration
public static void SetIsGroupHolder(View view, bool value)
Parameters
Type | Name | Description |
---|---|---|
View | view | The group holder. |
bool | value | The value to set. |