AbstractStringBuilder.TrimToSize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to reduce storage used for the character sequence.
[Android.Runtime.Register("trimToSize", "()V", "GetTrimToSizeHandler")]
public virtual void TrimToSize ();
[<Android.Runtime.Register("trimToSize", "()V", "GetTrimToSizeHandler")>]
abstract member TrimToSize : unit -> unit
override this.TrimToSize : unit -> unit
- Attributes
Remarks
Attempts to reduce storage used for the character sequence. If the buffer is larger than necessary to hold its current sequence of characters, then it may be resized to become more space efficient. Calling this method may, but is not required to, affect the value returned by a subsequent call to the #capacity()
method.
Java documentation for java.lang.AbstractStringBuilder.trimToSize()
.
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.