Click or drag to resize

KryptonCommand Class

Defines state and events for a single command.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      Internal.ComponentFactory.Krypton.ToolkitKryptonCommand

Namespace: Internal.ComponentFactory.Krypton.Toolkit
Assembly: NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntax
C#
public class KryptonCommand : Component, 
	IKryptonCommand, INotifyPropertyChanged

The KryptonCommand type exposes the following members.

Constructors
 NameDescription
Public methodKryptonCommand Initialize a new instance of the KryptonCommand class.
Top
Properties
 NameDescription
Protected propertyCanRaiseEventsGets a value indicating whether the component can raise an event.
(Inherited from Component)
Public propertyChecked Gets and sets the checked state of the command.
Public propertyCheckState Gets and sets the check state of the command.
Public propertyContainerGets the IContainer that contains the Component.
(Inherited from Component)
Protected propertyDesignModeGets a value that indicates whether the Component is currently in design mode.
(Inherited from Component)
Public propertyEnabled Gets and sets the enabled state of the command.
Protected propertyEventsGets the list of event handlers that are attached to this Component.
(Inherited from Component)
Public propertyExtraText Gets and sets the command extra text.
Public propertyImageLarge Gets and sets the command large image.
Public propertyImageSmall Gets and sets the command small image.
Public propertyImageTransparentColor Gets and sets the command image transparent color.
Public propertySiteGets or sets the ISite of the Component.
(Inherited from Component)
Public propertyTag Gets and sets user-defined data associated with the object.
Public propertyText Gets and sets the command text.
Public propertyTextLine1 Gets and sets the command text line 1 for use in KryptonRibbon.
Public propertyTextLine2 Gets and sets the command text line 2 for use in KryptonRibbon.
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the Component.
(Inherited from Component)
Protected methodDispose(Boolean) Clean up any resources being used.
(Overrides ComponentDispose(Boolean))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeReleases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Obsolete
Protected methodGetServiceReturns an object that represents a service provided by the Component or by its Container.
(Inherited from Component)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject)
Obsolete
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject)
Protected methodOnExecute Raises the Execute event.
Protected methodOnPropertyChanged Raises the PropertyChanged event.
Public methodPerformExecute Generates a Execute event for a button.
Public methodToStringReturns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component)
Top
Events
 NameDescription
Public eventDisposedOccurs when the component is disposed by a call to the Dispose method.
(Inherited from Component)
Public eventExecute Occurs when the command needs executing.
Public eventPropertyChanged Occurs when a property has changed value.
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also