WizardDesigner.ConvertToTemplate(String, IComponent, String, String[]) 方法

定义

将选择的控件转换为关联控件中的模板。Converts a selection of controls to a template in the associated control.

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

允许事务完成的效果的说明,由设计宿主使用,以便为用户提供取消操作的机会。A description of the effect of allowing the transaction to complete, which is used by the design host to give the user an opportunity to cancel the operation.

component
IComponent

与此设计器关联的向导控件。The wizard control associated with this designer.

templateName
String

要转换的目标模板的名称。The name of the template to convert to.

keys
String[]

要包含在模板中的控件的 ID 数组。An array of IDs for the controls that are to be included in the template.

适用于