Udostępnij za pośrednictwem


Vector.SetSize(Int32) Method

Definition

Sets the size of this vector.

[Android.Runtime.Register("setSize", "(I)V", "GetSetSize_IHandler")]
public virtual void SetSize (int newSize);
[<Android.Runtime.Register("setSize", "(I)V", "GetSetSize_IHandler")>]
abstract member SetSize : int -> unit
override this.SetSize : int -> unit

Parameters

newSize
Int32

the new size of this vector

Attributes

Remarks

Sets the size of this vector. If the new size is greater than the current size, new null items are added to the end of the vector. If the new size is less than the current size, all components at index newSize and greater are discarded.

Java documentation for java.util.Vector.setSize(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

See also