다음을 통해 공유


TextUtils.ReplaceFormatted(ICharSequence, String[], ICharSequence[]) Method

Definition

Return a new CharSequence in which each of the source strings is replaced by the corresponding element of the destinations.

[Android.Runtime.Register("replace", "(Ljava/lang/CharSequence;[Ljava/lang/String;[Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "")]
public static Java.Lang.ICharSequence? ReplaceFormatted (Java.Lang.ICharSequence? template, string[]? sources, Java.Lang.ICharSequence[]? destinations);
[<Android.Runtime.Register("replace", "(Ljava/lang/CharSequence;[Ljava/lang/String;[Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "")>]
static member ReplaceFormatted : Java.Lang.ICharSequence * string[] * Java.Lang.ICharSequence[] -> Java.Lang.ICharSequence

Parameters

template
ICharSequence
sources
String[]
destinations
ICharSequence[]

Returns

Attributes

Remarks

Return a new CharSequence in which each of the source strings is replaced by the corresponding element of the destinations.

Java documentation for android.text.TextUtils.replace(java.lang.CharSequence, java.lang.String[], 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