DesignSurface Konstruktorer

Definition

Initierar en ny instans av DesignSurface klassen.

Överlagringar

Name Description
DesignSurface()

Initierar en ny instans av DesignSurface klassen.

DesignSurface(IServiceProvider)

Initierar en ny instans av DesignSurface klassen.

DesignSurface(Type)

Initierar en ny instans av DesignSurface klassen.

DesignSurface(IServiceProvider, Type)

Initierar en ny instans av DesignSurface klassen.

DesignSurface()

Initierar en ny instans av DesignSurface klassen.

public:
 DesignSurface();
public DesignSurface();
Public Sub New ()

Undantag

Bifogat IDesignerHost till DesignSurface har tagits bort.

Gäller för

DesignSurface(IServiceProvider)

Initierar en ny instans av DesignSurface klassen.

public:
 DesignSurface(IServiceProvider ^ parentProvider);
public DesignSurface(IServiceProvider parentProvider);
new System.ComponentModel.Design.DesignSurface : IServiceProvider -> System.ComponentModel.Design.DesignSurface
Public Sub New (parentProvider As IServiceProvider)

Parametrar

parentProvider
IServiceProvider

Den överordnade tjänstleverantören eller null om det inte finns någon överordnad som används för att lösa tjänster.

Undantag

Bifogat IDesignerHost till DesignSurface har tagits bort.

Kommentarer

När parentProvide finns kan designers som finns på ytan hämta tjänster från programmet.

Se även

Gäller för

DesignSurface(Type)

Initierar en ny instans av DesignSurface klassen.

public:
 DesignSurface(Type ^ rootComponentType);
public DesignSurface(Type rootComponentType);
new System.ComponentModel.Design.DesignSurface : Type -> System.ComponentModel.Design.DesignSurface
Public Sub New (rootComponentType As Type)

Parametrar

rootComponentType
Type

Typ av rotkomponent som ska skapas.

Undantag

rootComponentType är null.

Bifogat IDesignerHost till DesignSurface har tagits bort.

Kommentarer

När du använder DesignSurface konstruktorn skapas en enkel designerinläsare som i sin tur skapar en komponent av den angivna typen och sedan avslutar inläsningsprocessen. Det här är ett enkelt sätt att skapa en designer, under antagandet att all besparing av tillstånd görs externt. Internt anropar BeginLoad och skickar detta rotkomponenttypen.

Note

Överlagringen DesignSurface påverkas inte av DesignerOptions. Måste DesignerOptions finnas i tjänstcontainern innan designytan läses in. Om du behöver åtkomst till DesignerOptionsanropar du den tomma konstruktorn, lägger till i DesignerOptionsServiceContainer och anropar BeginLoad med rootComponentType.

Gäller för

DesignSurface(IServiceProvider, Type)

Initierar en ny instans av DesignSurface klassen.

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)

Parametrar

parentProvider
IServiceProvider

Den överordnade tjänstleverantören eller null om det inte finns någon överordnad som används för att lösa tjänster.

rootComponentType
Type

Typ av rotkomponent som ska skapas.

Undantag

rootComponentType är null.

Bifogat IDesignerHost till DesignSurface har tagits bort.

Kommentarer

DesignSurface Med konstruktorn skapas en enkel designerinläsare som skapar en komponent av den angivna typen och sedan avslutar inläsningsprocessen. Det här är ett enkelt sätt att skapa en designer, under antagandet att all besparing av tillstånd görs externt. Internt anropar BeginLoad och skickar detta rotkomponenttypen.

Se även

Gäller för