Class
CommandDescriptor

Represents class that describes RadSpreadsheet command.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Commands.Descriptors

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

cs-api-definition
public class CommandDescriptor : NotifyPropertyChangedBase, IDisposable

Inheritance: objectCommandDescriptor

Implements: IDisposable

Constructors

CommandDescriptor(ICommand, bool, object)

Initializes a new instance of the CommandDescriptor class.

Declaration

cs-api-definition
public CommandDescriptor(ICommand command, bool isEnabled = true, object selectedValue = null)

Parameters

command

ICommand

The command.

isEnabled

bool

The is enabled.

selectedValue

object

The selected value.

Fields

Default

Gets the default CommandDescriptor.

Declaration

cs-api-definition
public static readonly CommandDescriptor Default

Field Value

CommandDescriptor

DefaultBool

Gets the default CommandDescriptor for commands which selected value is .

Declaration

cs-api-definition
public static readonly CommandDescriptor DefaultBool

Field Value

CommandDescriptor

DefaultColor

Gets the default CommandDescriptor for commands which selected value is Color.

Declaration

cs-api-definition
public static readonly CommandDescriptor DefaultColor

Field Value

CommandDescriptor

DefaultDouble

Gets the default CommandDescriptor for commands which selected value is .

Declaration

cs-api-definition
public static readonly CommandDescriptor DefaultDouble

Field Value

CommandDescriptor

DefaultInt

Gets the default CommandDescriptor for commands which selected value is .

Declaration

cs-api-definition
public static readonly CommandDescriptor DefaultInt

Field Value

CommandDescriptor

Properties

Command

Gets the command.

Declaration

cs-api-definition
public ICommand Command { get; }

Property Value

ICommand

The command.

IsEnabled

Gets or sets a value indicating whether the command descriptor is enabled.

Declaration

cs-api-definition
public bool IsEnabled { get; set; }

Property Value

bool

The value indicating whether the command descriptor is enabled.

SelectedValue

Gets or sets the selected value.

Declaration

cs-api-definition
public object SelectedValue { get; set; }

Property Value

object

The selected value.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

Dispose(bool)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration

cs-api-definition
protected virtual void Dispose(bool cleanUpManagedResources)

Parameters

cleanUpManagedResources

bool

True if want to clean the managed resources.