CommandLink Class
Represents a command link.
public class CommandLink
- Inheritance:
- object object
Constructors
CommandLink(Command?, KeyBinding?, MouseBinding?)
Represents a command link.
public CommandLink(Command? command = null, KeyBinding? keyBinding = null, MouseBinding? mouseBinding = null)
| Parameter | Type | Description |
|---|---|---|
| command | Command | The Command being linked. |
| keyBinding | KeyBinding | The KeyBinding to use for the command link. |
| mouseBinding | MouseBinding | The MouseBinding to use for the command link. |
CommandLink(Command, Keys, ModifierKeys)
Initializes an instance of the class.
public CommandLink(Command command, Keys key, ModifierKeys modifiers = ModifierKeys.None)
| Parameter | Type | Description |
|---|---|---|
| command | Command | The Command being linked. |
| key | Keys | The key. |
| modifiers | ModifierKeys | The modifier keys. |
Properties
Checked
Indicates whether the command link is in a checked state.
public bool Checked { get; set; }
Property Value
- bool:
trueif the command link is in a checked state; otherwise,false.
Command
The Command being linked.
Enabled
Indicates whether the command link is in an enabled state.
public bool Enabled { get; set; }
Property Value
- bool:
trueif the command link is in an enabled state; otherwise,false.
KeyBinding
The KeyBinding to use for the command link.
MouseBinding
The MouseBinding to use for the command link.
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()