Calendar.Roll Calendar.Roll Method

Definition

Overloads

Roll(CalendarField, Int32) Roll(CalendarField, Int32)

Adds the given amount to the given field and wraps the value of the field when it goes beyond the maximum or minimum value for the current date.

Roll(CalendarField, Boolean) Roll(CalendarField, Boolean)

Increment or decrement the given field and wrap the value of the field when it goes beyond the maximum or minimum value for the current date.

Roll(CalendarField, Int32) Roll(CalendarField, Int32)

Adds the given amount to the given 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", "(II)V", "GetRoll_IIHandler")]
public virtual void Roll (Java.Util.CalendarField field, int amount);
abstract member Roll : Java.Util.CalendarField * int -> unit
override this.Roll : Java.Util.CalendarField * int -> unit

Parameters

amount
Int32 Int32

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.

Roll(CalendarField, Boolean) Roll(CalendarField, Boolean)

Increment or decrement the given field and wrap 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 abstract void Roll (Java.Util.CalendarField field, bool up);
abstract member Roll : Java.Util.CalendarField * bool -> unit

Parameters

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