TemplateEditingVerb 构造函数

定义

初始化 TemplateEditingVerb 类的实例。Initializes an instance of the TemplateEditingVerb class.

重载

TemplateEditingVerb(String, Int32)

使用指定的谓词文本和索引初始化 TemplateEditingVerb 类的新实例。Initializes a new instance of the TemplateEditingVerb class with the specified verb text and index.

TemplateEditingVerb(String, Int32, TemplatedControlDesigner)

初始化 TemplateEditingVerb 类的新实例。Initializes a new instance of the TemplateEditingVerb class.

TemplateEditingVerb(String, Int32)

使用指定的谓词文本和索引初始化 TemplateEditingVerb 类的新实例。Initializes a new instance of the TemplateEditingVerb class with the specified verb text and index.

public:
 TemplateEditingVerb(System::String ^ text, int index);
public TemplateEditingVerb (string text, int index);
new System.Web.UI.Design.TemplateEditingVerb : string * int -> System.Web.UI.Design.TemplateEditingVerb
Public Sub New (text As String, index As Integer)

参数

text
String

要为菜单上的谓词显示的文本。The text to show for the verb on a menu.

index
Int32

可由设计器使用的可选整数值,通常指示谓词在谓词集中的索引。An optional integer value that can be used by a designer, typically to indicate the index of the verb within a set of verbs.

注解

备注

TemplateEditingVerb 类已过时。The TemplateEditingVerb class is obsolete. 通过 TemplateGroups 控件设计器的属性公开模板。Expose templates through the TemplateGroups property of a control designer. 设计宿主 TemplatedEditableDesignerRegion 为控件设计器的每个定义都创建一个 TemplateGroupThe design host creates a TemplatedEditableDesignerRegion for each TemplateGroup defined for a control designer.

另请参阅

适用于

TemplateEditingVerb(String, Int32, TemplatedControlDesigner)

初始化 TemplateEditingVerb 类的新实例。Initializes a new instance of the TemplateEditingVerb class.

public:
 TemplateEditingVerb(System::String ^ text, int index, System::Web::UI::Design::TemplatedControlDesigner ^ designer);
public TemplateEditingVerb (string text, int index, System.Web.UI.Design.TemplatedControlDesigner designer);
new System.Web.UI.Design.TemplateEditingVerb : string * int * System.Web.UI.Design.TemplatedControlDesigner -> System.Web.UI.Design.TemplateEditingVerb
Public Sub New (text As String, index As Integer, designer As TemplatedControlDesigner)

参数

text
String

要为菜单上的谓词显示的文本。The text to show for the verb on a menu.

index
Int32

可由设计器使用的可选整数值,通常指示谓词在谓词集中的索引。An optional integer value that can be used by a designer, typically to indicate the index of the verb within a set of verbs.

designer
TemplatedControlDesigner

可使用此谓词的 TemplatedControlDesignerThe TemplatedControlDesigner that can use this verb.

注解

备注

TemplateEditingVerb 类已过时。The TemplateEditingVerb class is obsolete. 通过 TemplateGroups 控件设计器的属性公开模板。Expose templates through the TemplateGroups property of a control designer. 设计宿主 TemplatedEditableDesignerRegion 为控件设计器的每个定义都创建一个 TemplateGroupThe design host creates a TemplatedEditableDesignerRegion for each TemplateGroup defined for a control designer.

另请参阅

适用于