UIControlState Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An enumeration of possible states for a UIControl.
This enumeration supports a bitwise combination of its member values.
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[System.Flags]
public enum UIControlState
type UIControlState =
- Inheritance
-
UIControlState
- Attributes
Fields
Name | Value | Description |
---|---|---|
Normal | 0 | The normal state of the control (not disabled and not higlighted) |
Highlighted | 1 | Control is highlighted. You can change this through the Highlighted property of the control. |
Disabled | 2 | Control is in the disabled state. You can change this through the Enabled property of the control. |
Selected | 4 | Selected state of the control. You can change this value by accessing the Selected property of the UIControl. |
Focused | 8 | Indicates that the control has the focus. |
Application | 16711680 | Mask for application defined states for a control. Possible application-reservedd values are 0x00010000 to 0x00ff0000. |
Reserved | 4278190080 | Reserved mask, no states should be defined in this range by the application. |
Remarks
Flags representing the state of a control.