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 Command
Declaration
public CommandDescriptor(ICommand command, bool isEnabled = true, object selectedValue = null)
Parameters
System. The command. |
System. The is enabled. |
System. The selected value. |
Fields
Default
Gets the default CommandDescriptor.
Declaration
public static readonly CommandDescriptor Default
Field Value
DefaultBool
Gets the default CommandDescriptor for commands which selected value is System.
Declaration
public static readonly CommandDescriptor DefaultBool
Field Value
DefaultColor
Gets the default CommandDescriptor for commands which selected value is System.
Declaration
public static readonly CommandDescriptor DefaultColor
Field Value
DefaultDouble
Gets the default CommandDescriptor for commands which selected value is System.
Declaration
public static readonly CommandDescriptor DefaultDouble
Field Value
DefaultInt
Gets the default CommandDescriptor for commands which selected value is System.
Declaration
public static readonly CommandDescriptor DefaultInt
Field Value
Properties
Command
Gets the command.
Declaration
public ICommand Command { get; }
Property Value
System. The command. |
IsEnabled
Gets or sets a value indicating whether the command descriptor is enabled.
Declaration
public bool IsEnabled { get; set; }
Property Value
System. 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. The selected value. |
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
protected virtual void Dispose(bool cleanUpManagedResources)
Parameters
System.
|