Android Guides | Samples

Android.Widget.NumberPicker.Value Property

Returns the value of the picker.

Syntax

[get: Android.Runtime.Register("getValue", "()I", "GetGetValueHandler")]
[set: Android.Runtime.Register("setValue", "(I)V", "GetSetValue_IHandler")]
public virtual Int32 Value { get; set; }

See Also

Remarks

Get method documentation[Android Documentation]
Returns the value of the picker.

Set method documentation[Android Documentation]
Set the current value for the number picker.

If the argument is less than the NumberPicker.MinValue and NumberPicker.WrapSelectorWheel is false the current value is set to the NumberPicker.MinValue value.

If the argument is less than the NumberPicker.MinValue and NumberPicker.WrapSelectorWheel is true the current value is set to the NumberPicker.MaxValue value.

If the argument is less than the NumberPicker.MaxValue and NumberPicker.WrapSelectorWheel is false the current value is set to the NumberPicker.MaxValue value.

If the argument is less than the NumberPicker.MaxValue and NumberPicker.WrapSelectorWheel is true the current value is set to the NumberPicker.MinValue value.

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11