CalendarView.SetDate(Int64, Boolean, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
自1970年1月1日00:00:00 TimeZone#getDefault() 起,將選定日期設定為毫秒。
[Android.Runtime.Register("setDate", "(JZZ)V", "GetSetDate_JZZHandler")]
public virtual void SetDate(long date, bool animate, bool center);
[<Android.Runtime.Register("setDate", "(JZZ)V", "GetSetDate_JZZHandler")>]
abstract member SetDate : int64 * bool * bool -> unit
override this.SetDate : int64 * bool * bool -> unit
參數
- date
- Int64
日期。
- animate
- Boolean
是否要將卷軸動畫化到當前日期。
- center
- Boolean
是否要將當前日期置中,即使它已經可見。
- 屬性
例外狀況
所提供日期的日期是在最小日期之前或最大日期之後。
備註
自1970年1月1日00:00:00 TimeZone#getDefault() 起,將選定日期設定為毫秒。
Java 文件 android.widget.CalendarView.setDate(long, boolean, boolean)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。