TemplateEditingService(IDesignerHost) 建構函式

定義

使用指定的設計工具主應用程式,初始化 TemplateEditingService 類別的新執行個體。Initializes a new instance of the TemplateEditingService class with the specified designer host.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 TemplateEditingService(System::ComponentModel::Design::IDesignerHost ^ designerHost);
public TemplateEditingService (System.ComponentModel.Design.IDesignerHost designerHost);
new System.Web.UI.Design.TemplateEditingService : System.ComponentModel.Design.IDesignerHost -> System.Web.UI.Design.TemplateEditingService
Public Sub New (designerHost As IDesignerHost)

參數

designerHost
IDesignerHost

IDesignerHost 實作,用來在設計階段存取元件。An IDesignerHost implementation, used to access components at design time.

備註

注意

TemplateEditingService 類別已經過時。The TemplateEditingService class is obsolete. 透過控制項設計工具的 TemplateGroups 屬性公開範本。Expose templates through the TemplateGroups property of a control designer. 設計主機會針對控制項設計工具所定義的每個 TemplateGroup 中的每個 TemplateDefinition 建立 TemplatedEditableDesignerRegion 物件。The design host creates a TemplatedEditableDesignerRegion object for each TemplateDefinition in each TemplateGroup that is defined for a control designer.

適用於