다음을 통해 공유


ListView.Controls 속성

정의

ControlCollection 컨트롤의 자식 컨트롤을 나타내는 ListView 개체를 가져옵니다.

public:
 virtual property System::Web::UI::ControlCollection ^ Controls { System::Web::UI::ControlCollection ^ get(); };
public override System.Web.UI.ControlCollection Controls { get; }
member this.Controls : System.Web.UI.ControlCollection
Public Overrides ReadOnly Property Controls As ControlCollection

속성 값

ControlCollection

ListView 컨트롤의 자식 컨트롤 컬렉션입니다.

설명

이 속성은 Controls 기본 구현을 재정의합니다. 이렇게 하면 속성이 개체를 반환하기 전에 모든 자식 컨트롤이 ControlCollection 생성됩니다.

Controls 속성을 사용하면 컨트롤에 대한 ListView 클래스의 인스턴스에 ControlCollection 프로그래밍 방식으로 액세스할 수 있습니다. 컬렉션에 컨트롤을 추가 하, 컬렉션에서 컨트롤을 제거 하거나 컬렉션에 있는 서버 컨트롤을 반복할 수 있습니다.

컨트롤의 특정 자식 컨트롤에 ListView 액세스 하려면 메서드를 FindControl 사용할 수 있습니다.

적용 대상

추가 정보