Class
CommandDescriptor

Represents class that describes RadSpreadsheetElement command.

Definition

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

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

cs-api-definition
public class CommandDescriptor : RadObject, INotifyPropertyChanged, ICustomTypeDescriptor, IDisposable

Inheritance: objectDisposableObjectRadObjectCommandDescriptor

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChanged

Inherited Members RadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

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

IsEnabledProperty

Declaration

cs-api-definition
public static RadProperty IsEnabledProperty

Field Value

RadProperty

IsVisibleProperty

Declaration

cs-api-definition
public static RadProperty IsVisibleProperty

Field Value

RadProperty

SelectedValueProperty

Declaration

cs-api-definition
public static RadProperty SelectedValueProperty

Field Value

RadProperty

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.

IsVisible

Gets or sets a value indicating whether any GUI for this command should be visible.

Declaration

cs-api-definition
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

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

Property Value

object

The selected value.

Methods

DisposeManagedResources()

Releases managed resources by clearing the property store and disposing value animators to prevent memory leaks.

Declaration

cs-api-definition
protected override void DisposeManagedResources()

Overrides RadObject.DisposeManagedResources()

OnPropertyChanged(RadPropertyChangedEventArgs)

Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

The RadPropertyChangedEventArgs containing information about the property change.

Overrides RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)