TemplateEditingVerb 类

定义

警告

此 API 现已过时。

表示一个设计器谓词,该谓词创建模板编辑框并且只能由模板编辑器调用。Represents a designer verb that creates a template editing frame, and that can be invoked only by a template editor.

public ref class TemplateEditingVerb : System::ComponentModel::Design::DesignerVerb, IDisposable
[System.Obsolete("Use of this type is not recommended because template editing is handled in ControlDesigner. To support template editing expose template data in the TemplateGroups property and call SetViewFlags(ViewFlags.TemplateEditing, true). https://go.microsoft.com/fwlink/?linkid=14202")]
public class TemplateEditingVerb : System.ComponentModel.Design.DesignerVerb, IDisposable
type TemplateEditingVerb = class
    inherit DesignerVerb
    interface IDisposable
Public Class TemplateEditingVerb
Inherits DesignerVerb
Implements IDisposable
继承
TemplateEditingVerb
属性
实现

注解

备注

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

构造函数

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.

属性

Checked

获取或设置一个值,用以指示是否选中此菜单项。Gets or sets a value indicating whether this menu item is checked.

(继承自 MenuCommand)
CommandID

获取与此菜单命令相关联的 CommandIDGets the CommandID associated with this menu command.

(继承自 MenuCommand)
Description

获取或设置谓词菜单项的说明。Gets or sets the description of the menu item for the verb.

(继承自 DesignerVerb)
Enabled

获取一个值,该值指示此菜单项是否可用。Gets a value indicating whether this menu item is available.

(继承自 MenuCommand)
Index

获取该谓词的索引或其他用户数据。Gets the index or other user data for the verb.

OleStatus

获取此菜单项的 OLE 命令状态代码。Gets the OLE command status code for this menu item.

(继承自 MenuCommand)
Properties

获取与 MenuCommand 关联的公共属性。Gets the public properties associated with the MenuCommand.

(继承自 MenuCommand)
Supported

获取或设置一个值,用以指示是否支持此菜单项。Gets or sets a value indicating whether this menu item is supported.

(继承自 MenuCommand)
Text

获取菜单上的谓词命令的文本说明。Gets the text description for the verb command on the menu.

(继承自 DesignerVerb)
Visible

获取或设置一个值,用以指示此菜单项是否可见。Gets or sets a value indicating whether this menu item is visible.

(继承自 MenuCommand)

方法

Dispose()

释放由 TemplateEditingVerb 使用的所有资源。Releases all resources used by the TemplateEditingVerb.

Dispose(Boolean)

释放由 TemplateEditingVerb 占用的非托管资源,还可以另外再释放托管资源。Releases the unmanaged resources used by the TemplateEditingVerb and optionally releases the managed resources.

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
Finalize()

在垃圾回收将对象回收之前,尝试释放资源。Attempts to free resources before the object is reclaimed by garbage collection.

GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Invoke()

调用该命令。Invokes the command.

(继承自 MenuCommand)
Invoke(Object)

使用给定参数调用命令。Invokes the command with the given parameter.

(继承自 MenuCommand)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnCommandChanged(EventArgs)

引发 CommandChanged 事件。Raises the CommandChanged event.

(继承自 MenuCommand)
ToString()

重写 ToString()Overrides ToString().

(继承自 DesignerVerb)

事件

CommandChanged

在菜单命令出现更改时发生。Occurs when the menu command changes.

(继承自 MenuCommand)

适用于

另请参阅