iOS Guides | Samples

MonoTouch.UIKit.UISlider Class

A UIControl that displays a slider.

See Also: UISlider

Syntax

[MonoTouch.Foundation.Register("UISlider", true)]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.TvOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public class UISlider : UIControl

Remarks

Related content

Requirements

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

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

See Also: UIControl

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
Initializes the UISlider with the specified frame.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
static
AppearanceUISlider+UISliderAppearance. Strongly-typed property that returns the UIAppearance class for this class.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
ContinuousBoolean. If set to true then update events are continuously sent as the slider is updated. If set to false, then an update event is only sent when the slider is finally updated
[read-only]
CurrentMaxTrackImageUIImage. Returns the maximum track UIImage that is being displayed for the value of the control.
[read-only]
CurrentMinTrackImageUIImage. Returns the minimum track UIImage that is being displayed for the value of the control.
[read-only]
CurrentThumbImageUIImage. This property returns the UIImage that is being used as the thumb image for the control.
MaximumTrackTintColorUIColor. This is the tint color that is used for the maximum track images.
MaxValueSingle. This property holds the maximum value of the the control.
MaxValueImageUIImage. This is the image that will be renderd by the slider on the maximum value size of the control.
MinimumTrackTintColorUIColor. The tint color user for the minimum track images.
MinValueSingle. This property holds the minimum value of the control.
MinValueImageUIImage. This is the image that will be renderd by the slider on the minimum value size of the control.
ThumbTintColorUIColor. This is the color that will be used to tint the thumb images.
ValueSingle. The value of the current control.

Public Methods

static
AppearanceWhenContainedIn(params Type[]) : UISlider+UISliderAppearance
Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.
static
GetAppearance(UITraitCollection) : UISlider+UISliderAppearance
Returns an appearance proxy for the specified traits.
static
GetAppearance(UITraitCollection, params Type[]) : UISlider+UISliderAppearance
Returns an appearance proxy for the specified traits when found in the containers containment hierarchy.
static
GetAppearance<T>() : UISlider+UISliderAppearance
Obtains the appearance proxy UISliderAppearance for the subclass of UISlider.
static
GetAppearance<T>(UITraitCollection) : UISlider+UISliderAppearance
Obtains the appearance proxy UISliderAppearance for the subclass of UISlider.
static
GetAppearance<T>(UITraitCollection, params Type[]) : UISlider+UISliderAppearance
Obtains the appearance proxy UISliderAppearance for the subclass of UISlider that has the specified trait collection when the view is hosted in the specified hierarchy.
MaxTrackImage(UIControlState) : UIImage
Returns the maximum track UIImage that is used for the provided control state.
MaxValueImageRectForBounds(RectangleF) : RectangleF
Returns the rectangle that the UISlider.MaxValueImage will occupy.
MinTrackImage(UIControlState) : UIImage
Returns the minimum track UIImage that is used for the provided control state.
MinValueImageRectForBounds(RectangleF) : RectangleF
Returns the rectangle that the UISlider.MinValueImage will occupy.
SetMaxTrackImage(UIImage, UIControlState)
Will specify the a maximum track image for a given control state.
SetMinTrackImage(UIImage, UIControlState)
SetThumbImage(UIImage, UIControlState)
Specifies the image to be used for the thumb in the specified UIControlState.
SetValue(Single, Boolean)
Assign a new value to the control - optionally animating the change.
ThumbImage(UIControlState) : UIImage
This method will return the thumb image for the specified state.
ThumbRectForBounds(RectangleF, RectangleF, Single) : RectangleF
This method will calculate and return the drawing rectangle for the thumb.
TrackRectForBounds(RectangleF) : RectangleF
Returns the rectangle that will be used for the drawing the slider's track.