共用方式為


DateFormat.Field.CalendarField Property

Definition

Returns the Calendar field associated with this attribute.

public virtual int CalendarField { [Android.Runtime.Register("getCalendarField", "()I", "GetGetCalendarFieldHandler")] get; }
[<get: Android.Runtime.Register("getCalendarField", "()I", "GetGetCalendarFieldHandler")>]
member this.CalendarField : int

Property Value

Calendar constant for this field

Attributes

Remarks

Returns the Calendar field associated with this attribute. For example, if this represents the hours field of a Calendar, this would return Calendar.HOUR. If there is no corresponding Calendar constant, this will return -1.

Java documentation for java.text.DateFormat.Field.getCalendarField().

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