Share via


AlphabeticIndex.SetMaxLabelCount(Int32) Method

Definition

Set a limit on the number of labels in the index.

[Android.Runtime.Register("setMaxLabelCount", "(I)Landroid/icu/text/AlphabeticIndex;", "", ApiSince=24)]
public Android.Icu.Text.AlphabeticIndex? SetMaxLabelCount (int maxLabelCount);
[<Android.Runtime.Register("setMaxLabelCount", "(I)Landroid/icu/text/AlphabeticIndex;", "", ApiSince=24)>]
member this.SetMaxLabelCount : int -> Android.Icu.Text.AlphabeticIndex

Parameters

maxLabelCount
Int32

Set the maximum number of labels. Currently, if the number is exceeded, then every nth item is removed to bring the count down. A more sophisticated mechanism may be available in the future.

Returns

this, for chaining

Attributes

Remarks

Set a limit on the number of labels in the index. The number of buckets can be slightly larger: see getBucketCount().

Java documentation for android.icu.text.AlphabeticIndex.setMaxLabelCount(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