Bewerken

Delen via


UISlider.SetValue(Single, Boolean) Method

Definition

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.

Applies to