DesignSurface 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
DesignSurface 클래스의 새 인스턴스를 초기화합니다.
오버로드
| Name | Description |
|---|---|
| DesignSurface() |
DesignSurface 클래스의 새 인스턴스를 초기화합니다. |
| DesignSurface(IServiceProvider) |
DesignSurface 클래스의 새 인스턴스를 초기화합니다. |
| DesignSurface(Type) |
DesignSurface 클래스의 새 인스턴스를 초기화합니다. |
| DesignSurface(IServiceProvider, Type) |
DesignSurface 클래스의 새 인스턴스를 초기화합니다. |
DesignSurface()
DesignSurface 클래스의 새 인스턴스를 초기화합니다.
public:
DesignSurface();
public DesignSurface();
Public Sub New ()
예외
IDesignerHost 첨부된 DesignSurface 파일은 삭제되었습니다.
적용 대상
DesignSurface(IServiceProvider)
DesignSurface 클래스의 새 인스턴스를 초기화합니다.
public:
DesignSurface(IServiceProvider ^ parentProvider);
public DesignSurface(IServiceProvider parentProvider);
new System.ComponentModel.Design.DesignSurface : IServiceProvider -> System.ComponentModel.Design.DesignSurface
Public Sub New (parentProvider As IServiceProvider)
매개 변수
- parentProvider
- IServiceProvider
부모 서비스 공급자이거나 null 서비스를 확인하는 데 사용되는 부모가 없는 경우
예외
IDesignerHost 첨부된 DesignSurface 파일은 삭제되었습니다.
설명
있는 경우 parentProvide 화면에 포함된 디자이너는 애플리케이션에서 서비스를 검색할 수 있습니다.
추가 정보
적용 대상
DesignSurface(Type)
DesignSurface 클래스의 새 인스턴스를 초기화합니다.
public:
DesignSurface(Type ^ rootComponentType);
public DesignSurface(Type rootComponentType);
new System.ComponentModel.Design.DesignSurface : Type -> System.ComponentModel.Design.DesignSurface
Public Sub New (rootComponentType As Type)
매개 변수
- rootComponentType
- Type
만들 루트 구성 요소의 형식입니다.
예외
rootComponentType은 null입니다.
IDesignerHost 첨부된 DesignSurface 파일은 삭제되었습니다.
설명
생성자를 사용하면 DesignSurface 지정된 형식의 구성 요소를 만든 다음 로드 프로세스를 종료하는 간단한 디자이너 로더를 만듭니다. 이는 모든 상태 저장이 외부에서 수행된다는 가정 하에 디자이너를 만드는 간단한 방법입니다. 내부적으로 루트 구성 요소 형식을 호출 BeginLoad 하고 전달합니다.
메모
오버로드는 .의 DesignSurface 영향을 DesignerOptions받지 않습니다.
DesignerOptions 디자인 화면이 로드되기 전에 서비스 컨테이너에 있어야 합니다. 액세스 권한이 DesignerOptions필요한 경우 빈 생성자를 호출하고 해당 생성자에 추가하고 DesignerOptions 다음을 ServiceContainer 사용하여 호출 BeginLoad 합니다 rootComponentType.
적용 대상
DesignSurface(IServiceProvider, Type)
DesignSurface 클래스의 새 인스턴스를 초기화합니다.
public:
DesignSurface(IServiceProvider ^ parentProvider, Type ^ rootComponentType);
public DesignSurface(IServiceProvider parentProvider, Type rootComponentType);
new System.ComponentModel.Design.DesignSurface : IServiceProvider * Type -> System.ComponentModel.Design.DesignSurface
Public Sub New (parentProvider As IServiceProvider, rootComponentType As Type)
매개 변수
- parentProvider
- IServiceProvider
부모 서비스 공급자이거나 null 서비스를 확인하는 데 사용되는 부모가 없는 경우
- rootComponentType
- Type
만들 루트 구성 요소의 형식입니다.
예외
rootComponentType은 null입니다.
IDesignerHost 첨부된 DesignSurface 파일은 삭제되었습니다.
설명
DesignSurface 생성자를 사용하면 지정된 형식의 구성 요소를 만든 다음 로드 프로세스를 종료하는 간단한 디자이너 로더가 만들어집니다. 이는 모든 상태 저장이 외부에서 수행된다는 가정 하에 디자이너를 만드는 간단한 방법입니다. 내부적으로 루트 구성 요소 형식을 호출 BeginLoad 하고 전달합니다.