Επεξεργασία

Κοινή χρήση μέσω


TemplateEditingVerb Class

Definition

Caution

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). http://go.microsoft.com/fwlink/?linkid=14202

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
public 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). http://go.microsoft.com/fwlink/?linkid=14202")]
public class TemplateEditingVerb : System.ComponentModel.Design.DesignerVerb, IDisposable
type TemplateEditingVerb = class
    inherit DesignerVerb
    interface 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). http://go.microsoft.com/fwlink/?linkid=14202")>]
type TemplateEditingVerb = class
    inherit DesignerVerb
    interface IDisposable
Public Class TemplateEditingVerb
Inherits DesignerVerb
Implements IDisposable
Inheritance
TemplateEditingVerb
Attributes
Implements

Remarks

Note

The TemplateEditingVerb class is obsolete. Expose templates through the TemplateGroups property of a control designer. The design host creates a TemplatedEditableDesignerRegion for each TemplateGroup defined for a control designer.

Constructors

TemplateEditingVerb(String, Int32, TemplatedControlDesigner)

Initializes a new instance of the TemplateEditingVerb class.

TemplateEditingVerb(String, Int32)

Initializes a new instance of the TemplateEditingVerb class with the specified verb text and index.

Properties

Checked

Gets or sets a value indicating whether this menu item is checked.

(Inherited from MenuCommand)
CommandID

Gets the CommandID associated with this menu command.

(Inherited from MenuCommand)
Description

Gets or sets the description of the menu item for the verb.

(Inherited from DesignerVerb)
Enabled

Gets a value indicating whether this menu item is available.

(Inherited from MenuCommand)
Index

Gets the index or other user data for the verb.

OleStatus

Gets the OLE command status code for this menu item.

(Inherited from MenuCommand)
Properties

Gets the public properties associated with the MenuCommand.

(Inherited from MenuCommand)
Supported

Gets or sets a value indicating whether this menu item is supported.

(Inherited from MenuCommand)
Text

Gets the text description for the verb command on the menu.

(Inherited from DesignerVerb)
Visible

Gets or sets a value indicating whether this menu item is visible.

(Inherited from MenuCommand)

Methods

Dispose()

Releases all resources used by the TemplateEditingVerb.

Dispose(Boolean)

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.

(Inherited from Object)
Finalize()

Attempts to free resources before the object is reclaimed by garbage collection.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Invoke()

Invokes the command.

(Inherited from MenuCommand)
Invoke(Object)

Invokes the command with the given parameter.

(Inherited from MenuCommand)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnCommandChanged(EventArgs)

Raises the CommandChanged event.

(Inherited from MenuCommand)
ToString()

Overrides ToString().

(Inherited from DesignerVerb)

Events

CommandChanged

Occurs when the menu command changes.

(Inherited from MenuCommand)

Applies to

See also