Language

SpannableStringBuilder Constructors

Definition

Overloads

Name Description
SpannableStringBuilder()

Create a new SpannableStringBuilder with empty contents

SpannableStringBuilder(ICharSequence)

Create a new SpannableStringBuilder containing a copy of the specified text, including its spans if any.

SpannableStringBuilder(String)

Create a new SpannableStringBuilder containing a copy of the specified text, including its spans if any.

SpannableStringBuilder(IntPtr, JniHandleOwnership)

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

SpannableStringBuilder(ICharSequence, Int32, Int32)

Create a new SpannableStringBuilder containing a copy of the specified slice of the specified text, including its spans if any.

SpannableStringBuilder(String, Int32, Int32)

Create a new SpannableStringBuilder containing a copy of the specified slice of the specified text, including its spans if any.

SpannableStringBuilder()

Create a new SpannableStringBuilder with empty contents

[Android.Runtime.Register(".ctor", "()V", "")]
public SpannableStringBuilder();
Attributes

Remarks

Create a new SpannableStringBuilder with empty contents

Java documentation for android.text.SpannableStringBuilder.SpannableStringBuilder().

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

SpannableStringBuilder(ICharSequence)

Create a new SpannableStringBuilder containing a copy of the specified text, including its spans if any.

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

Parameters

text
ICharSequence

The source text from which to copy characters and eligible spans.

Attributes

Remarks

Create a new SpannableStringBuilder containing a copy of the specified text, including its spans if any.

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

SpannableStringBuilder(String)

Create a new SpannableStringBuilder containing a copy of the specified text, including its spans if any.

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

Parameters

text
String

The source string from which to copy characters.

Attributes

Remarks

Create a new SpannableStringBuilder containing a copy of the specified text, including its spans if any.

Android reference for android.text.SpannableStringBuilder.SpannableStringBuilder.

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

SpannableStringBuilder(IntPtr, JniHandleOwnership)

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

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

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

SpannableStringBuilder(ICharSequence, Int32, Int32)

Create a new SpannableStringBuilder containing a copy of the specified slice of the specified text, including its spans if any.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;II)V", "")]
public SpannableStringBuilder(Java.Lang.ICharSequence? text, int start, int end);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;II)V", "")>]
new Android.Text.SpannableStringBuilder : Java.Lang.ICharSequence * int * int -> Android.Text.SpannableStringBuilder

Parameters

text
ICharSequence

The source text that contains the range to copy.

start
Int32

The first source character index to include.

end
Int32

The source index at which the range stops, excluding that character.

Attributes

Remarks

Create a new SpannableStringBuilder containing a copy of the specified slice of the specified text, including its spans if any.

Java documentation for android.text.SpannableStringBuilder.SpannableStringBuilder(java.lang.CharSequence, int, int).

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

SpannableStringBuilder(String, Int32, Int32)

Create a new SpannableStringBuilder containing a copy of the specified slice of the specified text, including its spans if any.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;II)V", "")]
public SpannableStringBuilder(string? text, int start, int end);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;II)V", "")>]
new Android.Text.SpannableStringBuilder : string * int * int -> Android.Text.SpannableStringBuilder

Parameters

text
String

The source string that contains the range to copy.

start
Int32

The first source character index to include.

end
Int32

The source index at which the range stops, excluding that character.

Attributes

Remarks

Create a new SpannableStringBuilder containing a copy of the specified slice of the specified text, including its spans if any.

Android reference for android.text.SpannableStringBuilder.SpannableStringBuilder.

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