ChoiceFormat 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| ChoiceFormat(String) |
基于模式具有限制和相应格式的构造。 |
| ChoiceFormat(Double[], String[]) |
使用限制和相应的格式构造。 |
| ChoiceFormat(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
ChoiceFormat(String)
基于模式具有限制和相应格式的构造。
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public ChoiceFormat(string? newPattern);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Text.ChoiceFormat : string -> Java.Text.ChoiceFormat
参数
- newPattern
- String
新模式字符串
- 属性
例外
如果分析模式时发生错误,则为
注解
基于模式具有限制和相应格式的构造。
Java文档java.text.ChoiceFormat.ChoiceFormat(java.lang.String)。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
ChoiceFormat(Double[], String[])
使用限制和相应的格式构造。
[Android.Runtime.Register(".ctor", "([D[Ljava/lang/String;)V", "")]
public ChoiceFormat(double[]? limits, string[]? formats);
[<Android.Runtime.Register(".ctor", "([D[Ljava/lang/String;)V", "")>]
new Java.Text.ChoiceFormat : double[] * string[] -> Java.Text.ChoiceFormat
参数
- limits
- Double[]
按升序限制
- formats
- String[]
相应的格式字符串
- 属性
注解
使用限制和相应的格式构造。
Java文档java.text.ChoiceFormat.ChoiceFormat(double[], java.lang.String[])。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
ChoiceFormat(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected ChoiceFormat(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Text.ChoiceFormat : nativeint * Android.Runtime.JniHandleOwnership -> Java.Text.ChoiceFormat
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。