SpannedString.ValueOf 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.
Overloads
| Name | Description |
|---|---|
| ValueOf(String) |
Creates a spanned string from a string. |
| ValueOf(ICharSequence) |
Gets immutable spanned text, reusing an existing spanned string when possible. |
ValueOf(String)
Creates a spanned string from a string.
public static Android.Text.SpannedString? ValueOf(string? source);
static member ValueOf : string -> Android.Text.SpannedString
Parameters
- source
- String
The string from which to copy characters.
Returns
A new spanned 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 immutable spanned text, reusing an existing spanned string when possible.
[Android.Runtime.Register("valueOf", "(Ljava/lang/CharSequence;)Landroid/text/SpannedString;", "")]
public static Android.Text.SpannedString? ValueOf(Java.Lang.ICharSequence? source);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/CharSequence;)Landroid/text/SpannedString;", "")>]
static member ValueOf : Java.Lang.ICharSequence -> Android.Text.SpannedString
Parameters
- source
- ICharSequence
The source text to use or copy.
Returns
The source if it is already a SpannedString; otherwise, a new spanned string containing its text and spans.
- Attributes
Remarks
Android reference for android.text.SpannedString.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.