|
Este artigo foi traduzido por máquina. Coloque o ponteiro do mouse sobre as frases do artigo para ver o texto original. Mais informações.
|
Tradução
Original
|
Classe Form.ControlCollection
System.Windows.Forms.Layout.ArrangedElementCollection
System.Windows.Forms.Control.ControlCollection
System.Windows.Forms.Form.ControlCollection
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (em System.Windows.Forms.dll)
O tipo Form.ControlCollection expõe os membros a seguir.
| Nome | Descrição | |
|---|---|---|
![]() | Form.ControlCollection |
| Nome | Descrição | |
|---|---|---|
![]() | Count | |
![]() | IsReadOnly | |
![]() | Item[Int32] | |
![]() | Item[String] | |
![]() | Owner |
| Nome | Descrição | |
|---|---|---|
![]() | Add | |
![]() | AddRange | |
![]() | Clear | |
![]() | Contains | |
![]() | ContainsKey | |
![]() | CopyTo | |
![]() | Equals | |
![]() | Finalize | |
![]() | Find | |
![]() | GetChildIndex(Control) | |
![]() | GetChildIndex(Control, Boolean) | |
![]() | GetEnumerator | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | IndexOf | |
![]() | IndexOfKey | |
![]() | MemberwiseClone | |
![]() | Remove | |
![]() | RemoveAt | |
![]() | RemoveByKey | |
![]() | SetChildIndex | |
![]() | ToString |
| Nome | Descrição | |
|---|---|---|
![]() ![]() | ICloneable.Clone | Infraestrutura. |
![]() ![]() | ICollection.IsSynchronized | |
![]() ![]() | ICollection.SyncRoot | |
![]() ![]() | IList.Add | Infraestrutura. |
![]() ![]() | IList.Clear | |
![]() ![]() | IList.Contains | |
![]() ![]() | IList.IndexOf | |
![]() ![]() | IList.Insert | |
![]() ![]() | IList.IsFixedSize | |
![]() ![]() | IList.Item | |
![]() ![]() | IList.Remove | Infraestrutura. |
![]() ![]() | IList.RemoveAt |
public void AddMyControls() { TextBox textBox1 = new TextBox(); Label label1 = new Label(); // Initialize the controls and their bounds. label1.Text = "First Name"; label1.Location = new Point(48,48); label1.Size = new Size (104, 16); textBox1.Text = ""; textBox1.Location = new Point(48, 64); textBox1.Size = new Size(104,16); // Add the TextBox control to the form's control collection. Controls.Add(textBox1); // Add the Label control to the form's control collection. Controls.Add(label1); }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Função Server Core sem suporte), Windows Server 2008 R2 (Função Server Core com suporte com o SP1 ou posterior, Itanium sem suporte)
O .NET Framework não oferece suporte a todas as versões de cada plataforma. Para obter uma lista das versões com suporte, consulte .Requisitos de sistema do NET Framework.

