In This Article

CommandLink Class

Represents a command link.

public class CommandLink
Inheritance:
object object

Constructors

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.

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

Indicates 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.

The Command being linked.

public Command? Command { get; set; }

Property Value

Command

Indicates 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.

The KeyBinding to use for the command link.

public KeyBinding? KeyBinding { get; set; }

Property Value

KeyBinding

The MouseBinding to use for the command link.

public MouseBinding? MouseBinding { get; set; }

Property Value

MouseBinding

Inherited Members

Extension Methods