ControlAdapter.CreateChildControls 메서드

정의

합성 컨트롤의 대상별 자식 컨트롤을 만듭니다.

protected public:
 virtual void CreateChildControls();
protected internal virtual void CreateChildControls ();
abstract member CreateChildControls : unit -> unit
override this.CreateChildControls : unit -> unit
Protected Friend Overridable Sub CreateChildControls ()

설명

개체에 연결된 Control 파생 컨트롤 어댑터가 있고 메서드가 CreateChildControls 재정의된 경우 메서드 대신 재정의 Control.CreateChildControls 가 호출됩니다. CreateChildControls 따라서 대상별 자식 컨트롤 집합을 만드는 데 사용할 수 있습니다.

컨트롤을 결합하여 새 컨트롤을 만드는 방법에 대한 자세한 내용은 복합 컨트롤을 참조하세요.

상속자 참고

상속 클래스를 만들고 메서드를 재정의 CreateChildControls() 하는 경우 기본 메서드에서 만든 컨트롤에 컨트롤을 추가하지 않는 한 기본 메서드를 호출하지 마세요. 그렇지 않으면 두 개의 자식 컨트롤 집합을 만들 수 있습니다.

적용 대상

추가 정보