Share via


TextUtils.ExpandTemplateFormatted(ICharSequence, ICharSequence[]) Method

Definition

Replace instances of "^1", "^2", etc.

[Android.Runtime.Register("expandTemplate", "(Ljava/lang/CharSequence;[Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "")]
public static Java.Lang.ICharSequence? ExpandTemplateFormatted (Java.Lang.ICharSequence? template, params Java.Lang.ICharSequence[]? values);
[<Android.Runtime.Register("expandTemplate", "(Ljava/lang/CharSequence;[Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "")>]
static member ExpandTemplateFormatted : Java.Lang.ICharSequence * Java.Lang.ICharSequence[] -> Java.Lang.ICharSequence

Parameters

template
ICharSequence

the input text containing "^1"-style placeholder values. This object is not modified; a copy is returned.

values
ICharSequence[]

CharSequences substituted into the template. The first is substituted for "^1", the second for "^2", and so on.

Returns

the new CharSequence produced by doing the replacement

Attributes

Remarks

Java documentation for android.text.TextUtils.expandTemplate(java.lang.CharSequence, java.lang.CharSequence).

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