Class Selector<T>

    Definition

    Namespace:
    Tizen.NUI.BaseComponents
    Assembly:
    Tizen.NUI.dll

    The selector class is a collection of a ControlState and a T value pair.

    public class Selector<T> : IEnumerable<SelectorItem<T>>, IEnumerable
    Inheritance
    object
    Selector<T>
    Implements
    System.Collections.Generic.IEnumerable<T><SelectorItem<T>>
    System.Collections.IEnumerable

    Constructors

    View Source

    Selector()

    Create an empty selector. This constructor returns an empty selector object which can be used to define various selectors for different states and conditions.

    Declaration
    public Selector()

    Properties

    View Source

    SelectedFocused

    Gets or sets the value associated with the SelectedFocused state.

    Declaration
    public T SelectedFocused { get; set; }
    Property Value
    Type Description
    T

    Methods

    View Source

    Add(SelectorItem<T>)

    Adds the specified state and value to the selector.

    Declaration
    public void Add(SelectorItem<T> item)
    Parameters
    Type Name Description
    SelectorItem<T> item

    The selector item includes state and value.

    Exceptions
    Type Condition
    System.ArgumentNullException

    Thrown when item is null.

    View Source

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object other)
    Parameters
    Type Name Description
    object other

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)

    Operators

    View Source

    implicit operator Selector<T>(T)

    Implicitly convert T type value to selector.

    Declaration
    public static implicit operator Selector<T>(T value)
    Parameters
    Type Name Description
    T value

    The value will be converted to a selector.

    Returns
    Type Description
    Selector<T>

    Implements

    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX