Condividi tramite


MessagePattern.CountParts Method

Definition

Returns the number of "parts" created by parsing the pattern string.

[Android.Runtime.Register("countParts", "()I", "", ApiSince=24)]
public int CountParts ();
[<Android.Runtime.Register("countParts", "()I", "", ApiSince=24)>]
member this.CountParts : unit -> int

Returns

the number of pattern parts.

Attributes

Remarks

Returns the number of "parts" created by parsing the pattern string. Returns 0 if no pattern has been parsed or clear() was called.

Java documentation for android.icu.text.MessagePattern.countParts().

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