Sdílet prostřednictvím


SpannableString Constructors

Definition

Overloads

SpannableString(ICharSequence)

For the backward compatibility reasons, this constructor copies all spans including android.text.NoCopySpan.

SpannableString(String)
SpannableString(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SpannableString(ICharSequence)

For the backward compatibility reasons, this constructor copies all spans including android.text.NoCopySpan.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "")]
public SpannableString (Java.Lang.ICharSequence? source);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "")>]
new Android.Text.SpannableString : Java.Lang.ICharSequence -> Android.Text.SpannableString

Parameters

source
ICharSequence

source text

Attributes

Remarks

For the backward compatibility reasons, this constructor copies all spans including android.text.NoCopySpan.

Java documentation for android.text.SpannableString.SpannableString(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

SpannableString(String)

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "")]
public SpannableString (string? source);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "")>]
new Android.Text.SpannableString : string -> Android.Text.SpannableString

Parameters

source
String
Attributes

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

SpannableString(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SpannableString (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Text.SpannableString : nativeint * Android.Runtime.JniHandleOwnership -> Android.Text.SpannableString

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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