New to Telerik UI for WinFormsStart a free 30-day trial

Represents base command that is associated with a RadDock instance.

Definition

Namespace:Telerik.WinControls.UI.Docking

Assembly:Telerik.WinControls.RadDock.dll

Syntax:

C#
public abstract class RadDockCommand : CommandBase, IImageListProvider

Inheritance: objectCommandBaseRadDockCommand

Implements: IImageListProvider

Constructors

Default constructor.

C#
public RadDockCommand()

Properties

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

C#
public List<RadShortcut> Shortcuts { get; }

Methods

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.
C#
public override bool CanExecute(object parameter)
Parameters:parameterobject

The additional parameter provided. Should be a RadDock instance.

Returns:

bool

Overrides: CommandBase.CanExecute(object)

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

C#
public bool IsMappingKey(Keys key)
Parameters:keyKeysReturns:

bool

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

C#
public bool IsPartialShortcut(Keys modifiers, params Keys[] mappings)
Parameters:modifiersKeysmappingsKeys[]Returns:

bool

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

C#
public bool IsShortcut(Keys modifiers, params Keys[] mappings)
Parameters:modifiersKeysmappingsKeys[]Returns:

bool