WizardDesigner.ConvertToTemplate(String, IComponent, String, String[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將部分控制項轉換為相關控制項中的範本。
protected:
void ConvertToTemplate(System::String ^ description, System::ComponentModel::IComponent ^ component, System::String ^ templateName, cli::array <System::String ^> ^ keys);
protected void ConvertToTemplate(string description, System.ComponentModel.IComponent component, string templateName, string[] keys);
member this.ConvertToTemplate : string * System.ComponentModel.IComponent * string * string[] -> unit
Protected Sub ConvertToTemplate (description As String, component As IComponent, templateName As String, keys As String())
參數
- description
- String
描述允許交易完成的效果,設計主機利用此資訊給使用者取消操作的機會。
- component
- IComponent
與此設計者相關的巫師控制。
- templateName
- String
要轉換成範本的名稱。
- keys
- String[]
一組用於模板中要包含的控制項的 ID。