Language

SpannableString.ValueOf Method

Definition

Overloads

Name Description
ValueOf(String)

Creates spannable text from a string.

ValueOf(ICharSequence)

Gets spannable text, reusing an existing spannable string when possible.

ValueOf(String)

Creates spannable text from a string.

public static Android.Text.SpannableString? ValueOf(string? source);
static member ValueOf : string -> Android.Text.SpannableString

Parameters

source
String

The string from which to copy characters.

Returns

A new spannable string containing the supplied characters.

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.

Applies to

ValueOf(ICharSequence)

Gets spannable text, reusing an existing spannable string when possible.

[Android.Runtime.Register("valueOf", "(Ljava/lang/CharSequence;)Landroid/text/SpannableString;", "")]
public static Android.Text.SpannableString? ValueOf(Java.Lang.ICharSequence? source);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/CharSequence;)Landroid/text/SpannableString;", "")>]
static member ValueOf : Java.Lang.ICharSequence -> Android.Text.SpannableString

Parameters

source
ICharSequence

The source text to use or copy.

Returns

The source if it is already a SpannableString; otherwise, a new spannable string containing its text and spans.

Attributes

Remarks

Android reference for android.text.SpannableString.valueOf.

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