TableLayoutPanel.Controls 속성

정의

TableLayoutPanel에 들어 있는 컨트롤의 컬렉션을 가져옵니다.

public:
 property System::Windows::Forms::TableLayoutControlCollection ^ Controls { System::Windows::Forms::TableLayoutControlCollection ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.TableLayoutControlCollection Controls { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Controls : System.Windows.Forms.TableLayoutControlCollection
Public ReadOnly Property Controls As TableLayoutControlCollection

속성 값

현재 TableLayoutControlCollection과 연결된 컨트롤이 들어 있는 TableLayoutPanel입니다.

특성

예제

다음 코드 예제에서는 의 모든 자식 컨트롤을 열거합니다 TableLayoutPanel.

private void enumerateChildrenBtn_Click(
    System.Object sender, 
    System.EventArgs e)
{
    foreach ( Control c in this.TableLayoutPanel1.Controls )
    {
        Trace.WriteLine(c.ToString());
    }
}
Private Sub enumerateChildrenBtn_Click( _
ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles enumerateChildrenBtn.Click

    Dim c As Control
    For Each c In Me.TableLayoutPanel1.Controls

        Trace.WriteLine(c.ToString())

    Next

End Sub

설명

속성에는 Controls , ColumnCount또는 RowCount 제한 사항으로 인해 GrowStyle현재 표시되지 않을 수 있는 컨트롤을 포함하여 테이블과 연결된 모든 컨트롤이 포함됩니다.

적용 대상

추가 정보