TemplateEditingVerb 類別

定義

警告

此 API 現已淘汰。

表示會建立樣板 (Template) 編輯框架的設計工具動詞命令,且只可由樣板編輯器叫用 (Invoke)。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 所使用的 Unmanaged 資源,並選擇性地釋放 Managed 資源。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 的淺層複本 (Shallow Copy)。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)

適用於

另請參閱