DateTimeFormatterBuilder.AppendText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AppendText(ITemporalField, IDictionary<Long,String>) |
Appends the text of a date-time field to the formatter using a provided mapping. |
| AppendText(ITemporalField) |
Appends the text of a date-time field to the formatter using the full text style. |
| AppendText(ITemporalField, TextStyle) |
Appends the text of a date-time field to the formatter. |
AppendText(ITemporalField, IDictionary<Long,String>)
Appends the text of a date-time field to the formatter using a provided mapping.
[Android.Runtime.Register("appendText", "(Ljava/time/temporal/TemporalField;Ljava/util/Map;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendText(Java.Time.Temporal.ITemporalField? field, System.Collections.Generic.IDictionary<Java.Lang.Long,string>? textLookup);
[<Android.Runtime.Register("appendText", "(Ljava/time/temporal/TemporalField;Ljava/util/Map;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendText : Java.Time.Temporal.ITemporalField * System.Collections.Generic.IDictionary<Java.Lang.Long, string> -> Java.Time.Format.DateTimeFormatterBuilder
Parameters
- field
- ITemporalField
the field to append, not null
- textLookup
- IDictionary<Long,String>
the map from values to text, not null
Returns
this, for chaining, not null
- Attributes
Remarks
The mapping is used for both printing and parsing.
Applies to
AppendText(ITemporalField)
Appends the text of a date-time field to the formatter using the full text style.
[Android.Runtime.Register("appendText", "(Ljava/time/temporal/TemporalField;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendText(Java.Time.Temporal.ITemporalField? field);
[<Android.Runtime.Register("appendText", "(Ljava/time/temporal/TemporalField;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendText : Java.Time.Temporal.ITemporalField -> Java.Time.Format.DateTimeFormatterBuilder
Parameters
- field
- ITemporalField
the field to append, not null
Returns
this, for chaining, not null
- Attributes
Remarks
The text is selected using the locale and the full text style.
Applies to
AppendText(ITemporalField, TextStyle)
Appends the text of a date-time field to the formatter.
[Android.Runtime.Register("appendText", "(Ljava/time/temporal/TemporalField;Ljava/time/format/TextStyle;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)]
public Java.Time.Format.DateTimeFormatterBuilder? AppendText(Java.Time.Temporal.ITemporalField? field, Java.Time.Format.TextStyle? textStyle);
[<Android.Runtime.Register("appendText", "(Ljava/time/temporal/TemporalField;Ljava/time/format/TextStyle;)Ljava/time/format/DateTimeFormatterBuilder;", "", ApiSince=26)>]
member this.AppendText : Java.Time.Temporal.ITemporalField * Java.Time.Format.TextStyle -> Java.Time.Format.DateTimeFormatterBuilder
Parameters
- field
- ITemporalField
the field to append, not null
- textStyle
- TextStyle
the text style to use, not null
Returns
this, for chaining, not null
- Attributes
Remarks
The text is selected using the locale and the specified text style.