Language

SpannableFactory.NewSpannable Method

Definition

Overloads

Name Description
NewSpannable(ICharSequence)

Returns a new SpannableString from the specified CharSequence.

NewSpannable(String)

Returns a new SpannableString from the specified CharSequence.

NewSpannable(ICharSequence)

Returns a new SpannableString from the specified CharSequence.

[Android.Runtime.Register("newSpannable", "(Ljava/lang/CharSequence;)Landroid/text/Spannable;", "GetNewSpannable_Ljava_lang_CharSequence_Handler")]
public virtual Android.Text.ISpannable? NewSpannable(Java.Lang.ICharSequence? source);
[<Android.Runtime.Register("newSpannable", "(Ljava/lang/CharSequence;)Landroid/text/Spannable;", "GetNewSpannable_Ljava_lang_CharSequence_Handler")>]
abstract member NewSpannable : Java.Lang.ICharSequence -> Android.Text.ISpannable
override this.NewSpannable : Java.Lang.ICharSequence -> Android.Text.ISpannable

Parameters

source
ICharSequence

The source text used to initialize the spannable content.

Returns

The spannable object created by the factory. The default implementation creates a SpannableString.

Attributes

Remarks

Returns a new SpannableString from the specified CharSequence. You can override this to provide a different kind of Spannable.

Java documentation for android.text.Spannable.Factory.newSpannable(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

NewSpannable(String)

Returns a new SpannableString from the specified CharSequence.

public Android.Text.ISpannable? NewSpannable(string? source);
member this.NewSpannable : string -> Android.Text.ISpannable

Parameters

source
String

The source text used to initialize the spannable content.

Returns

The spannable object created by the factory. The default implementation creates a SpannableString.

Remarks

Returns a new SpannableString from the specified CharSequence. You can override this to provide a different kind of Spannable.

Java documentation for android.text.Spannable.Factory.newSpannable(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