Share via


ListFormatter.GetPatternForNumItems(Int32) Method

Definition

Returns the pattern to use for a particular item count.

[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

Parameters

count
Int32

the item count.

Returns

the pattern with {0}, {1}, {2}, etc. For English, getPatternForNumItems(3) == "{0}, {1}, and {2}"

Attributes

Remarks

Returns the pattern to use for a particular item count.

Java documentation for android.icu.text.ListFormatter.getPatternForNumItems(int).

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.

Applies to