NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MenuCommand Members

Public:

Constructor

MenuCommand Constructor Initializes a new instance of MenuCommand.

Properties

Checked Gets or sets a value that indicates whether this menu item is checked.
CommandID Gets the CommandID associated with this menu.
Enabled Gets or sets a value that indicates whether this menu item is available.
OleStatus Gets the OLE command status code for this menu item.
Supported Gets or sets a value that indicates whether this menu item is supported.
Visible Gets or sets a value that indicates if this menu item is visible.

Methods

Equals (inherited from Object) Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality).
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the Object.
Invoke Invokes a menu item.
ToString Overrides object's ToString().

Events

CommandChanged Occurs when the menu command changes.

Protected:

Methods

Finalize (inherited from Object) Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
OnCommandChanged Provides notification and is called in response to a CommandChanged event.

Event Hookup:

Methods

AddOnCommandChanged Allows a caller to attach an event that will be called when this command changes.
RemoveOnCommandChanged Removes a CommandChanged event handler.

See Also

MenuCommand Class | System.ComponentModel.Design Namespace