IList<TValue>.resize Método
Definição
Altera o número de elementos no contêiner.Changes the number of elements in the container.
Sobrecargas
| resize(Int32, TValue) |
Altera o número de elementos no contêiner para o tamanho especificado.Changes the number of elements in the container to the specified size. Se o novo tamanho for maior que o tamanho anterior, os valores fornecidos serão acrescentados ao contêiner.If the new size is larger than the old size, the given values will be appended to the container. |
| resize(Int32) |
Altera o número de elementos no contêiner para o tamanho especificado.Changes the number of elements in the container to the specified size. |
Comentários
Para obter mais informações, consulte list:: redimensionar (STL/CLR).For more information, see list::resize (STL/CLR).
resize(Int32, TValue)
Altera o número de elementos no contêiner para o tamanho especificado.Changes the number of elements in the container to the specified size. Se o novo tamanho for maior que o tamanho anterior, os valores fornecidos serão acrescentados ao contêiner.If the new size is larger than the old size, the given values will be appended to the container.
public:
void resize(int _Newsize, TValue _Val);
public void resize (int _Newsize, TValue _Val);
abstract member resize : int * 'Value -> unit
Public Sub resize (_Newsize As Integer, _Val As TValue)
Parâmetros
- _Newsize
- Int32
O novo tamanho do contêiner.The new size of the container.
- _Val
- TValue
O valor dos elementos de preenchimento.The value of the padding elements.
Comentários
Para obter mais informações, consulte list:: redimensionar (STL/CLR).For more information, see list::resize (STL/CLR).
Aplica-se a
resize(Int32)
Altera o número de elementos no contêiner para o tamanho especificado.Changes the number of elements in the container to the specified size.
public:
void resize(int _Newsize);
public void resize (int _Newsize);
abstract member resize : int -> unit
Public Sub resize (_Newsize As Integer)
Parâmetros
- _Newsize
- Int32
O novo tamanho do contêiner.The new size of the container.
Comentários
Para obter mais informações, consulte list:: redimensionar (STL/CLR).For more information, see list::resize (STL/CLR).