Language

TextUtils.ConcatFormatted(ICharSequence[]) Method

Definition

Returns a CharSequence concatenating the specified CharSequences, retaining their spans if any.

[Android.Runtime.Register("concat", "([Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "")]
public static Java.Lang.ICharSequence? ConcatFormatted(params Java.Lang.ICharSequence[]? text);
[<Android.Runtime.Register("concat", "([Ljava/lang/CharSequence;)Ljava/lang/CharSequence;", "")>]
static member ConcatFormatted : Java.Lang.ICharSequence[] -> Java.Lang.ICharSequence

Parameters

text
ICharSequence[]

Returns

Attributes

Remarks

Returns a CharSequence concatenating the specified CharSequences, retaining their spans if any. If there are no parameters, an empty string will be returned. If the number of parameters is exactly one, that parameter is returned as output, even if it is null. If the number of parameters is at least two, any null CharSequence among the parameters is treated as if it was the string "null". If there are paragraph spans in the source CharSequences that satisfy paragraph boundary requirements in the sources but would no longer satisfy them in the concatenated CharSequence, they may get extended in the resulting CharSequence or not retained.

Android reference for android.text.TextUtils.concat.

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