Class
RadDockCommand

Represents base command that is associated with a RadDock instance.

Definition

Namespace:Telerik.WinControls.UI.Docking

Assembly:Telerik.WinControls.RadDock.dll

Syntax:

cs-api-definition
public abstract class RadDockCommand : CommandBase, IImageListProvider

Inheritance: objectCommandBaseRadDockCommand

Implements: IImageListProvider

Constructors

RadDockCommand()

Default constructor.

Declaration

cs-api-definition
public RadDockCommand()

Properties

Shortcuts

Gets a list with all the RadShortcut registered for this command.

Declaration

cs-api-definition
public List<RadShortcut> Shortcuts { get; }

Property Value

List<RadShortcut>

Methods

CanExecute(object)

Determines whether the command may execute. The command may be executed in the following cases:

  • The currently active form is the one where the associated RadDock resides.
  • The currently active form is a FloatingWindow instance, owned by the associated RadDock.
  • The currently active form is an AutoHidePopup instance, owned by the associated RadDock.

Declaration

cs-api-definition
public override bool CanExecute(object parameter)

Parameters

parameter

object

The additional parameter provided. Should be a RadDock instance.

Returns

bool

Overrides CommandBase.CanExecute(object)

IsMappingKey(Keys)

Determines whether the specified key is a mapping for any of the associated shortcuts.

Declaration

cs-api-definition
public bool IsMappingKey(Keys key)

Parameters

key

Keys

Returns

bool

IsPartialShortcut(Keys, params Keys[])

Determines whether the keyboard combination is partial for any of the registered RadShortcut instance.

Declaration

cs-api-definition
public bool IsPartialShortcut(Keys modifiers, params Keys[] mappings)

Parameters

modifiers

Keys

mappings

Keys[]

Returns

bool

IsShortcut(Keys, params Keys[])

Determines whether the keyboard combination is valid for any of the registered RadShortcut instance.

Declaration

cs-api-definition
public bool IsShortcut(Keys modifiers, params Keys[] mappings)

Parameters

modifiers

Keys

mappings

Keys[]

Returns

bool