UIKit.UISwitch Members

The members of UIKit.UISwitch are listed below.

See Also: Inherited members from UIKit.UIControl

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
Initializes the UISwitch with the specified frame.
A constructor that initializes the object from the data stored in the unarchiver object.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
static
AppearanceUISwitch.UISwitchAppearance. Strongly-typed property that returns the UIAppearance class for this class.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
OffImageUIImage. The image to be used to indicate Off.
Onbool. This property returns if the state of the switch is on or off.
OnImageUIImage. The UIImage representing the On state.
OnTintColorUIColor. The tint color to use when the switch is turned on.
ThumbTintColorUIColor. The color used to tint the thumb.

Public Methods

static
AppearanceWhenContainedIn(params Type[]) : UISwitch.UISwitchAppearance
Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.
static
GetAppearance<T>() : UISwitch.UISwitchAppearance
The strongly-typed IUIAppearance for this object.
static
GetAppearance<T>(UITraitCollection) : UISwitch.UISwitchAppearance
Documentation for this section has not yet been entered.
static
GetAppearance<T>(UITraitCollection, params Type[]) : UISwitch.UISwitchAppearance
Documentation for this section has not yet been entered.
SetState(bool, bool)
This method changes the state of the switch, and will animate the change if specified.

Protected Methods

override
Dispose(bool)
Releases the resources used by the UISwitch object.