Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​ComponentModel.​Design.​MenuCommand
Assembly: System.ComponentModel.TypeConverter
Inheritance: object → MenuCommand
Represents a Windows menu or toolbar command item.
Properties
public
bool
Checked
Gets or sets a value indicating whether this menu item is checked.
public
CommandID
CommandID
Gets the <see cref="T:System.ComponentModel.Design.CommandID" /> associated with this menu command.
public
bool
Enabled
Gets a value indicating whether this menu item is available.
public
int
OleStatus
Gets the OLE command status code for this menu item.
Properties
Gets the public properties associated with the <see cref="T:System.ComponentModel.Design.MenuCommand" /> .
public
bool
Supported
Gets or sets a value indicating whether this menu item is supported.
public
bool
Visible
Gets or sets a value indicating whether this menu item is visible.
Methods
public
void
Invoke​()
Invokes the command.
public
void
Invoke​(object arg)
Invokes the command with the given parameter.
arg
An optional argument for use by the command.
protected
void
OnCommandChanged​(EventArgs e)
Raises the <see cref="E:System.ComponentModel.Design.MenuCommand.CommandChanged" /> event.
e
An <see cref="T:System.EventArgs" /> that contains the event data.
public
string
ToString​()
Returns a string representation of this menu command.
Returns A string containing the value of the <see cref="P:System.ComponentModel.Design.MenuCommand.CommandID" /> property appended with the names of any flags that are set, separated by pipe bars (|). These flag properties include <see cref="P:System.ComponentModel.Design.MenuCommand.Checked" /> , <see cref="P:System.ComponentModel.Design.MenuCommand.Enabled" /> , <see cref="P:System.ComponentModel.Design.MenuCommand.Supported" /> , and <see cref="P:System.ComponentModel.Design.MenuCommand.Visible" /> .
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object