ToolboxCategory.IList.Insert(Int32, Object) Método
Definição
Insere uma ferramenta no ToolboxCategory no índice especificado.Inserts a tool into the ToolboxCategory at the specified index.
virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert
Parâmetros
- index
- Int32
O índice de base zero no qual o value deve ser inserido.The zero-based index at which value should be inserted.
- value
- Object
A ferramenta adicionada à coleção.The tool added to the collection.
Implementações
Exceções
O index não é válido para a coleção ToolboxCategory.The index is not valid for the ToolboxCategory collection.
O value é null.The value is null.
O ToolboxCategory é somente leitura ou tem um tamanho fixo que foi excedido.The ToolboxCategory is read-only, or it has a fixed size that has been exceeded.
Comentários
ToolboxCategory implementa a interface IList.ToolboxCategory implements the IList interface.
Se for index igual ao número de itens no IList , value será anexado ao final.If index equals the number of items in the IList, then value is appended to the end.
Em coleções de elementos contíguos, como listas, os elementos que seguem o ponto de inserção descem para acomodar o novo elemento.In collections of contiguous elements, such as lists, the elements that follow the insertion point move down to accommodate the new element. Caso a coleção seja indexada, os índices dos elementos que são movidos também são atualizados.If the collection is indexed, the indexes of the elements that are moved are also updated.