CommandLink Class
Represents a command link.
public class CommandLink
- Inheritance:
- object object
Constructors
CommandLink()
Initializes a new instance of the CommandLink
class.
public CommandLink()
CommandLink(Command)
Initializes a new instance of the CommandLink
class.
public CommandLink(Command command)
Parameter | Type | Description |
---|---|---|
command | Command | The Command being linked. |
CommandLink(Command, KeyBinding)
Initializes a new instance of the CommandLink
class.
public CommandLink(Command command, KeyBinding keyBinding)
Parameter | Type | Description |
---|---|---|
command | Command | The Command being linked. |
keyBinding | KeyBinding | The KeyBinding to use for the command link. |
CommandLink(Command, KeyBinding, MouseBinding)
Initializes a new instance of the CommandLink
class.
public CommandLink(Command command, KeyBinding keyBinding, MouseBinding mouseBinding)
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 a new instance of the CommandLink
class.
public CommandLink(Command command, Keys key, ModifierKeys modifiers)
Parameter | Type | Description |
---|---|---|
command | Command | The Command being linked. |
key | Keys | The key. |
modifiers | ModifierKeys | The modifier keys. |
Properties
Checked
Gets or sets whether the command link is in a checked state.
public bool Checked { get; set; }
Property Value
- bool:
true
if the command link is in a checked state; otherwise,false
.
Command
Gets or sets the Command being linked.
Enabled
Gets or sets whether the command link is in an enabled state.
public bool Enabled { get; set; }
Property Value
- bool:
true
if the command link is in an enabled state; otherwise,false
.
KeyBinding
Gets or sets the KeyBinding to use for the command link.
public KeyBinding KeyBinding { get; set; }
Property Value
- KeyBinding:
The KeyBinding to use for the command link.
MouseBinding
Gets or sets the MouseBinding to use for the command link.
public MouseBinding MouseBinding { get; set; }
Property Value
- MouseBinding:
The MouseBinding to use for the command link.