TextUtils.ExpandTemplateFormatted(ICharSequence, ICharSequence[]) 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.
[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
Replace instances of "^1", "^2", etc. in the template CharSequence with the corresponding values. "^^" is used to produce a single caret in the output. Only up to 9 replacement values are supported, "^10" will be produce the first replacement value followed by a '0'.
Android reference for android.text.TextUtils.expandTemplate.
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.