Control.Controlsプロパティリファレンス

1823 ワード

Control.Controls   [C#]
              。

[Visual Basic]
Public ReadOnly Property Controls As Control.ControlCollection

[C#]
public Control.ControlCollection Controls {get;}

[C++]
public: __property Control.ControlCollection* get_Controls();

[JScript]
public function get Controls() : Control.ControlCollection;

   
   Control.ControlCollection,              。

  
Control            。  ,          Form  ,        Control.ControlCollection
, Controls , Control 。 Control.ControlCollection , Controls Control.ControlCollection
。 , SuspendLayout 。 ,
ResumeLayout 。 。 [Visual Basic, C#, C++] Panel Control.ControlCollection
Control( )。 Form Panel、 Button
RadioButton 。 RadioButton Panel , Panel Form。
, Control.ControlCollection radioButton2 。 [Visual Basic] ' Remove the RadioButton control if it exists. Private Sub RemoveButton_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles RemoveButton.Click If Panel1.Controls.Contains(RadioAddRangeButton) Then Panel1.Controls.Remove(RadioAddRangeButton) End If End Sub [C#] // Remove the RadioButton control if it exists. private void removeButton_Click(object sender, System.EventArgs e) { if(panel1.Controls.Contains(removeButton)) { panel1.Controls.Remove(removeButton); } } [C++] // Remove the RadioButton control if it exists. private: void removeButton_Click(Object* sender, System::EventArgs* e) { if (panel1->Controls->Contains(removeButton)) { panel1->Controls->Remove(removeButton); } }