StringBuilder StringBuilder Constructors

Definition

Overloads

StringBuilder()

Constructs an instance with an initial capacity of 16.

StringBuilder(ICharSequence) StringBuilder(ICharSequence)

Constructs an instance that's initialized with the contents of the specified CharSequence.

StringBuilder(Int32) StringBuilder(Int32)

Constructs an instance with the specified capacity.

StringBuilder(String) StringBuilder(String)

Constructs an instance that's initialized with the contents of the specified String.

StringBuilder()

Constructs an instance with an initial capacity of 16.

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

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.

See also

StringBuilder(ICharSequence) StringBuilder(ICharSequence)

Constructs an instance that's initialized with the contents of the specified CharSequence.

[Android.Runtime.Register(".ctor", "(Ljava/lang/CharSequence;)V", "")]
public StringBuilder (Java.Lang.ICharSequence seq);
new Java.Lang.StringBuilder : Java.Lang.ICharSequence -> Java.Lang.StringBuilder

Parameters

Exceptions

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.

StringBuilder(Int32) StringBuilder(Int32)

Constructs an instance with the specified capacity.

[Android.Runtime.Register(".ctor", "(I)V", "")]
public StringBuilder (int capacity);
new Java.Lang.StringBuilder : int -> Java.Lang.StringBuilder

Parameters

capacity
Int32 Int32

Exceptions

if the specified capacity is negative.

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.

See also

StringBuilder(String) StringBuilder(String)

Constructs an instance that's initialized with the contents of the specified String.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public StringBuilder (string str);
new Java.Lang.StringBuilder : string -> Java.Lang.StringBuilder

Parameters

Exceptions

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