iOS Guides | Samples

MonoTouch.UIKit.UIControlState Enumeration

An enumeration of possible states for a UIControl.

Syntax

[MonoTouch.ObjCRuntime.Native]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UIControlState

Remarks

Flags representing the state of a control.

Members

Member NameDescription
ApplicationMask for application defined states for a control. Possible application-reservedd values are 0x00010000 to 0x00ff0000.
DisabledControl is in the disabled state. You can change this through the Enabled property of the control.
FocusedIndicates that the control has the focus.
HighlightedControl is highlighted. You can change this through the Highlighted property of the control.
NormalThe normal state of the control (not disabled and not higlighted)
ReservedReserved mask, no states should be defined in this range by the application.
SelectedSelected state of the control. You can change this value by accessing the Selected property of the UIControl.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIControlState are listed below.

See Also: Enum

Public Fields

ApplicationUIControlState. Mask for application defined states for a control. Possible application-reservedd values are 0x00010000 to 0x00ff0000.
DisabledUIControlState. Control is in the disabled state. You can change this through the Enabled property of the control.
FocusedUIControlState. Indicates that the control has the focus.
HighlightedUIControlState. Control is highlighted. You can change this through the Highlighted property of the control.
NormalUIControlState. The normal state of the control (not disabled and not higlighted)
ReservedUIControlState. Reserved mask, no states should be defined in this range by the application.
SelectedUIControlState. Selected state of the control. You can change this value by accessing the Selected property of the UIControl.