Definition
- Namespace:
- Tizen.NUI.BaseComponents
- Assembly:
- Tizen.NUI.dll
- API Level:
- 9
Class for describing the states of control.
If a non-control view class would want to get the control state, please refer EnableControlState.
public class ControlState : IEquatable<ControlState>
- Inheritance
-
Fields
View Source
All
The All state is used in a selector class. It represents all states, so if this state is defined in a selector, the other states are ignored.
Declaration
public static readonly ControlState All
Field Value
API Level: 9
Declaration
public static readonly ControlState Disabled
Field Value
API Level: 9
Declaration
public static readonly ControlState DisabledFocused
Field Value
Declaration
public static readonly ControlState DisabledSelected
Field Value
Declaration
public static readonly ControlState Focused
Field Value
API Level: 9
Declaration
public static readonly ControlState Normal
Field Value
API Level: 9
View Source
Other
This is used in a selector class. It represents all other states except for states that are already defined in a selector.
Declaration
public static readonly ControlState Other
Field Value
API Level: 9
Declaration
public static readonly ControlState Pressed
Field Value
API Level: 9
Declaration
public static readonly ControlState Selected
Field Value
API Level: 9
Declaration
public static readonly ControlState SelectedFocused
Field Value
Declaration
public static readonly ControlState SelectedPressed
Field Value
Properties
View Source
IsCombined
Gets or sets a value indicating whether it has combined states.
Declaration
public bool IsCombined { get; }
Property Value
Methods
View Source
Contains(ControlState)
Determines whether a state contains a specified state.
Declaration
public bool Contains(ControlState state)
Parameters
Type |
Name |
Description |
ControlState |
state |
The state to search for
|
Returns
Type |
Description |
Boolean |
true if the state contain a specified state, otherwise, false.
|
API Level: 9
Declaration
public static ControlState Create(string name)
Parameters
Type |
Name |
Description |
String |
name |
The state name.
|
Returns
API Level: 9
Declaration
public static ControlState Create(params ControlState[] states)
Parameters
Type |
Name |
Description |
ControlState[] |
states |
The control state array.
|
Returns
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
API Level: 9
Declaration
public bool Equals(ControlState other)
Parameters
Returns
Declaration
public override int GetHashCode()
Returns
Declaration
public override string ToString()
Returns
Operators
Declaration
public static ControlState operator +(ControlState lhs, ControlState rhs)
Parameters
Returns
API Level: 9
View Source
Equality(ControlState, ControlState)
Compares whether the two ControlStates are same or not.
Declaration
public static bool operator ==(ControlState lhs, ControlState rhs)
Parameters
Returns
Type |
Description |
Boolean |
true if the ControlStates are equal; otherwise, false.
|
API Level: 9
View Source
Inequality(ControlState, ControlState)
Compares whether the two ControlStates are different or not.
Declaration
public static bool operator !=(ControlState lhs, ControlState rhs)
Parameters
Returns
Type |
Description |
Boolean |
true if the ControlStates are not equal; otherwise, false.
|
API Level: 9
View Source
Subtraction(ControlState, ControlState)
The substraction operator.
Declaration
public static ControlState operator -(ControlState lhs, ControlState rhs)
Parameters
Returns
Extension Methods