语言

ListFormatter.GetPatternForNumItems(Int32) 方法

定义

返回要用于特定项计数的模式。

[Android.Runtime.Register("getPatternForNumItems", "(I)Ljava/lang/String;", "", ApiSince=26)]
public string? GetPatternForNumItems(int count);
[<Android.Runtime.Register("getPatternForNumItems", "(I)Ljava/lang/String;", "", ApiSince=26)>]
member this.GetPatternForNumItems : int -> string

参数

count
Int32

项计数。

返回

具有 {0}、 {1}、 {2}等的模式。对于英语,getPatternForNumItems(3) == “{0}, {1}和 {2}”

特性

注解

返回要用于特定项计数的模式。

Java文档android.icu.text.ListFormatter.getPatternForNumItems(int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于