Class CommandDescriptor
Represents class that describes RadSpreadsheetElement command.
Inherited Members
Namespace: Telerik.WinForms.Controls.Spreadsheet.Commands.Descriptors
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public class CommandDescriptor : RadObject, INotifyPropertyChanged, ICustomTypeDescriptor, 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
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
|
IsEnabledProperty
IsVisibleProperty
SelectedValueProperty
Properties
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. |
IsVisible
Gets or sets a value indicating whether any GUI for this command should be visible.
Declaration
public ElementVisibility IsVisible { get; set; }
Property Value
ElementVisibility
The value indicating whether the command descriptor should be visible in a GUI. |
SelectedValue
Gets or sets the selected value.
Declaration
public object SelectedValue { get; set; }
Property Value
System.Object
The selected value. |
Methods
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|