MessageFormat.GetFormats 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.
Gets the formats used for the format elements in the previously set pattern string.
[Android.Runtime.Register("getFormats", "()[Ljava/text/Format;", "GetGetFormatsHandler")]
public virtual Java.Text._Format[]? GetFormats ();
[<Android.Runtime.Register("getFormats", "()[Ljava/text/Format;", "GetGetFormatsHandler")>]
abstract member GetFormats : unit -> Java.Text._Format[]
override this.GetFormats : unit -> Java.Text._Format[]
Returns
the formats used for the format elements in the pattern
- Attributes
Remarks
Gets the formats used for the format elements in the previously set pattern string. The order of formats in the returned array corresponds to the order of format elements in the pattern string.
Since the order of format elements in a pattern string often changes during localization, it's generally better to use the #getFormatsByArgumentIndex getFormatsByArgumentIndex
method, which assumes an order of formats corresponding to the order of elements in the arguments
array passed to the format
methods or the result array returned by the parse
methods.
Java documentation for java.text.MessageFormat.getFormats()
.
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.