Class CommandDescriptor
Represents class that describes RadSpreadsheet command.
Inheritance
Namespace: Telerik.Windows.Controls.Spreadsheet.Commands.Descriptors
Assembly: Telerik.Windows.Controls.Spreadsheet.dll
Syntax
public class CommandDescriptor : NotifyPropertyChangedBase, IDisposable
Constructors
CommandDescriptor(ICommand, Boolean, Object)
Initializes a new instance of the CommandDescriptor class.
Declaration
public CommandDescriptor(ICommand command, bool isEnabled = true, object selectedValue = null)
Parameters
System.Windows.Input.ICommand
command
The command. |
System.Boolean
isEnabled
The is enabled. |
System.Object
selectedValue
The selected value. |
Fields
Default
Gets the default CommandDescriptor.
Declaration
public static readonly CommandDescriptor Default
Field Value
CommandDescriptor
|
DefaultBool
Gets the default CommandDescriptor for commands which selected value is System.bool.
Declaration
public static readonly CommandDescriptor DefaultBool
Field Value
CommandDescriptor
|
DefaultColor
Gets the default CommandDescriptor for commands which selected value is System.Windows.Media.Color.
Declaration
public static readonly CommandDescriptor DefaultColor
Field Value
CommandDescriptor
|
DefaultDouble
Gets the default CommandDescriptor for commands which selected value is System.double.
Declaration
public static readonly CommandDescriptor DefaultDouble
Field Value
CommandDescriptor
|
DefaultInt
Gets the default CommandDescriptor for commands which selected value is System.int.
Declaration
public static readonly CommandDescriptor DefaultInt
Field Value
CommandDescriptor
|
Properties
Command
Gets the command.
Declaration
public ICommand Command { get; }
Property Value
System.Windows.Input.ICommand
The command. |
IsEnabled
Gets or sets a value indicating whether the command descriptor is enabled.
Declaration
public bool IsEnabled { get; set; }
Property Value
System.Boolean
The value indicating whether the command descriptor is enabled. |
SelectedValue
Gets or sets the selected value.
Declaration
public object SelectedValue { get; set; }
Property Value
System.Object
The selected value. |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Implements
Dispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
protected virtual void Dispose(bool cleanUpManagedResources)
Parameters
System.Boolean
cleanUpManagedResources
|