UISlider.SetValue(Single, Boolean) Method
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.
Assign a new value to the control - optionally animating the change.
[Foundation.Export("setValue:animated:")]
public virtual void SetValue (float value, bool animated);
abstract member SetValue : single * bool -> unit
override this.SetValue : single * bool -> unit
Parameters
- value
- Single
A new value for the control.
- animated
- Boolean
If true
then change will be animated in the control.
- Attributes
Remarks
If value
is less than the value of MinValue or greater than the value of MaxValue, the value of the control will be set to the mininum value or maximum value respectively.