TextUtils.ExpandTemplate(String, String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.