DesignerAutoFormat.GetPreviewControl(Control) 메서드

정의

컨트롤에 서식을 적용하기 전에 미리 보기를 제공하기 위해 연결된 컨트롤의 복사본을 반환합니다.

public:
 virtual System::Web::UI::Control ^ GetPreviewControl(System::Web::UI::Control ^ runtimeControl);
public virtual System.Web.UI.Control GetPreviewControl (System.Web.UI.Control runtimeControl);
abstract member GetPreviewControl : System.Web.UI.Control -> System.Web.UI.Control
override this.GetPreviewControl : System.Web.UI.Control -> System.Web.UI.Control
Public Overridable Function GetPreviewControl (runtimeControl As Control) As Control

매개 변수

runtimeControl
Control

웹 서버 컨트롤의 런타임 버전입니다.

반환

Control

GetPreviewControl(Control) 메서드는 연결된 웹 서버 컨트롤의 복사본을 반환합니다.

설명

GetPreviewControl 메서드는 실제 컨트롤에 서식을 적용하기 전에 디자인 타임에 컨트롤의 서식이 지정된 런타임 미리 보기를 표시하기 위해 자동 서식 대화 상자에서 Visual Studio 2005와 같은 비주얼 디자이너에서 사용됩니다.

설정과 관계 없이 SupportsPreviewControlAttribute 특성에 대 한는 ControlDesigner 개체를 GetPreviewControl 에서 컨트롤의 복사본을 반환 하는 메서드는 runtimeControl 매개 변수.

상속자 참고

재정의할 수 있습니다는 GetPreviewControl(Control) 다음과 같은 경우에는 메서드: -반환 된 컨트롤의 크기는 원래 컨트롤에서 다른 됩니다.

-컨트롤 충분 한 미리 보기를 제공 하기 위해 샘플 데이터로 채워야 합니다.

적용 대상

추가 정보