GregorianCalendar.Roll(CalendarField, Boolean) GregorianCalendar.Roll(CalendarField, Boolean) Method

Definition

Increments or decrements the specified field and wraps the value of the field when it goes beyond the maximum or minimum value for the current date.

[Android.Runtime.Register("roll", "(IZ)V", "GetRoll_IZHandler")]
public override void Roll (Java.Util.CalendarField field, bool up);
override this.Roll : Java.Util.CalendarField * bool -> unit

Parameters

field
CalendarField CalendarField

the field to roll.

Exceptions

if an invalid field is specified.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to