In This Article

CommandLink Class

Represents a command link.

public class CommandLink
Inheritance:
object object

Constructors

Initializes a new instance of the CommandLink class.

public CommandLink()

Initializes a new instance of the CommandLink class.

public CommandLink(Command command)
Parameter Type Description
command Command

The Command being linked.

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.

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.

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

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.

Gets or sets the Command being linked.

public Command Command { get; set; }

Property Value

Command:

The Command being linked.

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.

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.

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.

Inherited Members