Class Selector<T>

Definition

Namespace:
Tizen.NUI.BaseComponents
Assembly:
Tizen.NUI.dll
API Level:
9

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

C#
Copy
public class Selector<T> : IEnumerable<SelectorItem<T>>, IEnumerable
Inheritance
System.Object
Selector<T>
Derived
Tizen.NUI.Components.ColorSelector
Tizen.NUI.Components.FloatSelector
Tizen.NUI.Components.IntSelector
Tizen.NUI.Components.RectangleSelector
Tizen.NUI.Components.StringSelector
Tizen.NUI.Components.Vector2Selector
Implements
System.Collections.Generic.IEnumerable<SelectorItem<T>>

Constructors

View Source

Selector()

Create an empty selector.

Declaration
C#
Copy
public Selector()
API Level: 9

Properties

View Source

SelectedFocused

SelectedFocused State.

Declaration
C#
Copy
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
C#
Copy
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.

API Level: 9
View Source

Equals(Object)

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

Declaration
C#
Copy
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
Boolean
Overrides
System.Object.Equals(System.Object)
API Level: 9

Operators

View Source

Implicit(T to Selector<T>)

Implicitly convert T type value to selector.

Declaration
C#
Copy
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>
API Level: 9

Implements

System.Collections.Generic.IEnumerable<T>