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

Represents class that describes RadSpreadsheet command.

Definition

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

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class CommandDescriptor : NotifyPropertyChangedBase, IDisposable

Inheritance: objectCommandDescriptor

Implements: IDisposable

Constructors

Initializes a new instance of the CommandDescriptor class.

C#
public CommandDescriptor(ICommand command, bool isEnabled = true, object selectedValue = null)
Parameters:commandICommand

The command.

isEnabledbool

The is enabled.

selectedValueobject

The selected value.

Fields

Gets the default CommandDescriptor.

C#
public static readonly CommandDescriptor Default

Gets the default CommandDescriptor for commands which selected value is .

C#
public static readonly CommandDescriptor DefaultBool

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

C#
public static readonly CommandDescriptor DefaultColor

Gets the default CommandDescriptor for commands which selected value is .

C#
public static readonly CommandDescriptor DefaultDouble

Gets the default CommandDescriptor for commands which selected value is .

C#
public static readonly CommandDescriptor DefaultInt

Properties

Gets the command.

C#
public ICommand Command { get; }
Property Value:

The command.

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

C#
public bool IsEnabled { get; set; }
Property Value:

The value indicating whether the command descriptor is enabled.

Gets or sets the selected value.

C#
public object SelectedValue { get; set; }
Property Value:

The selected value.

Methods

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

C#
public void Dispose()

Implements: IDisposable.Dispose()

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

C#
protected virtual void Dispose(bool cleanUpManagedResources)
Parameters:cleanUpManagedResourcesbool

True if want to clean the managed resources.