Java.Text.ChoiceFormat.SetChoices Method
Sets the double values and associated strings of this ChoiceFormat.

Syntax

[Android.Runtime.Register("setChoices", "([D[Ljava/lang/String;)V", "GetSetChoices_arrayDarrayLjava_lang_String_Handler")]
public virtual void SetChoices (double[] limits, string[] formats)

Parameters

limits
an array of doubles in ascending order. The lowest and highest possible values are negative and positive infinity.
formats
the strings associated with the ranges defined through limits. The lower bound of the associated range is at the same index as the string.

Remarks

Sets the double values and associated strings of this ChoiceFormat. When calling ChoiceFormat.Format(double, Java.Lang.StringBuffer, Java.Lang.StringBuffer) with a double value d, then the element i in formats is selected where i fulfills limits[i] <= d .

The length of the limits and formats arrays must be the same.

[Android Documentation]

Requirements

Namespace: Java.Text
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1