다음을 통해 공유


TextUtils.ExpandTemplate(String, String[]) Method

Definition

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

public static string? ExpandTemplate (string? template, params string[]? values);
static member ExpandTemplate : string * string[] -> string

Parameters

template
String

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

values
String[]

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

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