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
    object
    SelectGroup
    Derived
    CheckBoxGroup
    MenuItemGroup
    RadioButtonGroup
    TabButtonGroup

    Constructors

    View Source

    SelectGroup()

    Construct SelectionGroup

    Declaration
    protected SelectGroup()

    Properties

    View Source

    Count

    Get the number of items in the SelectionGroup.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int
    View Source

    EnableMultiSelection

    EnableMultiSelection is used to indicate if SelectGroup can select multiple SelectButtons.

    Declaration
    public bool EnableMultiSelection { get; set; }
    Property Value
    Type Description
    bool
    View Source

    ItemGroup

    Selection group composed of items

    Declaration
    protected List<SelectButton> ItemGroup { get; }
    Property Value
    Type Description
    List<><SelectButton>
    View Source

    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 Source

    AddAllToView(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.

    View Source

    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

    View Source

    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.

    View Source

    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

    View Source

    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

    View Source

    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 Source

    SelectedChanged

    An event for the item selected changed.

    Declaration
    public event EventHandler SelectedChanged
    Event Type
    Type Description
    EventHandler

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX