Class CheckBoxGroup
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
The CheckboxGroup class is used to group together a set of CheckBox control
public class CheckBoxGroup : SelectGroup
- Inheritance
Constructors
View SourceCheckBoxGroup()
Construct CheckBoxGroup
Declaration
public CheckBoxGroup()
Fields
View SourceIsGroupHolderProperty
IsGroupHolderProperty
Declaration
public static readonly BindableProperty IsGroupHolderProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Methods
View SourceAdd(CheckBox)
Add CheckBox to the end of CheckBoxGroup.
Declaration
public void Add(CheckBox check)
Parameters
Type | Name | Description |
---|---|---|
CheckBox | check | The CheckBox to be added to the CheckBoxGroup |
CheckAll(bool)
Check or Uncheck all of child checkboxes by the specified value
Declaration
public void CheckAll(bool state)
Parameters
Type | Name | Description |
---|---|---|
bool | state | The boolean state of the check box |
GetCheckBoxGroup(View)
Gets a attached CheckBoxGroup for a view.
Declaration
public static CheckBoxGroup GetCheckBoxGroup(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | The group holder. |
Returns
Type | Description |
---|---|
CheckBoxGroup |
GetCheckedIndices()
Get the index array of checked items.
Declaration
public int[] GetCheckedIndices()
Returns
Type | Description |
---|---|
int[] | The array of index |
GetCheckedItems()
Get the CheckBox array of checked items.
Declaration
public CheckBox[] GetCheckedItems()
Returns
Type | Description |
---|---|
CheckBox[] | The array of CheckBox |
GetIsGroupHolder(View)
Gets a CheckBoxGroup.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 CheckBox object at the specified index.
Declaration
public CheckBox GetItem(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The item index |
Returns
Type | Description |
---|---|
CheckBox | CheckBox |
IsCheckedAll()
Determines whether every checkboxes in the CheckBoxGroup are checked
Declaration
public bool IsCheckedAll()
Returns
Type | Description |
---|---|
bool | If all of CheckBoxes are checked, return true. otherwise false |
Remove(CheckBox)
Remove CheckBox from the CheckBoxGroup.
Declaration
public void Remove(CheckBox check)
Parameters
Type | Name | Description |
---|---|---|
CheckBox | check | The CheckBox to remove from the CheckBoxGroup |
SetIsGroupHolder(View, bool)
Sets a CheckBoxGroup.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. |