Compartilhar via


AbstractStringBuilder.Capacity Method

Definition

Returns the current capacity.

[Android.Runtime.Register("capacity", "()I", "GetCapacityHandler")]
public virtual int Capacity ();
[<Android.Runtime.Register("capacity", "()I", "GetCapacityHandler")>]
abstract member Capacity : unit -> int
override this.Capacity : unit -> int

Returns

the current capacity

Attributes

Remarks

Returns the current capacity. The capacity is the amount of storage available for newly inserted characters, beyond which an allocation will occur.

Java documentation for java.lang.AbstractStringBuilder.capacity().

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