MessageFormat.GetFormatsByArgumentIndex 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 values passed into
format
methods or returned from parse
methods.
[Android.Runtime.Register("getFormatsByArgumentIndex", "()[Ljava/text/Format;", "GetGetFormatsByArgumentIndexHandler")]
public virtual Java.Text._Format[]? GetFormatsByArgumentIndex ();
[<Android.Runtime.Register("getFormatsByArgumentIndex", "()[Ljava/text/Format;", "GetGetFormatsByArgumentIndexHandler")>]
abstract member GetFormatsByArgumentIndex : unit -> Java.Text._Format[]
override this.GetFormatsByArgumentIndex : unit -> Java.Text._Format[]
Returns
the formats used for the arguments within the pattern
- Attributes
Remarks
Gets the formats used for the values passed into format
methods or returned from parse
methods. The indices of elements in the returned array correspond to the argument indices used in the previously set pattern string. The order of formats in the returned array thus corresponds to the order of elements in the arguments
array passed to the format
methods or the result array returned by the parse
methods.
If an argument index is used for more than one format element in the pattern string, then the format used for the last such format element is returned in the array. If an argument index is not used for any format element in the pattern string, then null is returned in the array.
Added in 1.4.
Java documentation for java.text.MessageFormat.getFormatsByArgumentIndex()
.
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.