Click or drag to resize

ButtonSpec Class

Specifition for a button.
Inheritance Hierarchy

Namespace:  Internal.ComponentFactory.Krypton.Toolkit
Assembly:  NeoAxis.Core.Editor (in NeoAxis.Core.Editor.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public abstract class ButtonSpec : Component, 
	IButtonSpecValues, ICloneable

The ButtonSpec type exposes the following members.

Constructors
  NameDescription
Public methodButtonSpec
Initialize a new instance of the ButtonSpec class.
Top
Properties
  NameDescription
Public propertyAllowInheritExtraText
Gets and sets if the button extra text be inherited if defined as empty.
Public propertyAllowInheritImage
Gets and sets if the button image be inherited if defined as null.
Public propertyAllowInheritText
Gets and sets if the button text be inherited if defined as empty.
Public propertyAllowInheritToolTipTitle
Gets and sets if the button tooltip title be inherited if defined as empty.
Protected propertyCanRaiseEvents
Gets a value indicating whether the component can raise an event.
(Inherited from Component.)
Public propertyColorMap
Gets and sets image color to remap to container foreground.
Public propertyContainer
Gets the IContainer that contains the Component.
(Inherited from Component.)
Public propertyContextMenuStrip
Gets and sets the context menu strip for the button.
Protected propertyDesignMode
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.)
Public propertyEdge
Gets and sets the header edge to display the button against.
Protected propertyEvents
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.)
Public propertyExtraText
Gets and sets the button extra text.
Public propertyImage
Gets and sets the button image.
Public propertyImageStates
Gets access to the state specific images for the button.
Public propertyImageTransparentColor
Gets and sets the button image.
Public propertyIsDefault
Gets a value indicating if all values are default.
Public propertyKryptonCommand
Gets and sets the associated KryptonCommand.
Public propertyKryptonContextMenu
Gets and sets the krypton context menu for the button.
Public propertyOrientation
Gets and sets the button orientation.
Public propertyOwner
Gets and sets user-defined data associated with the object.
Protected propertyProtectedType
Gets and sets the actual type of the button.
Public propertySite
Gets or sets the ISite of the Component.
(Inherited from Component.)
Public propertyStyle
Gets and sets the button style.
Public propertyTag
Gets and sets user-defined data associated with the object.
Public propertyText
Gets and sets the button text.
Public propertyToolTipBody
Gets and sets the button body tooltip text.
Public propertyToolTipImage
Gets and sets the button tooltip image.
Public propertyToolTipImageTransparentColor
Gets and sets the tooltip image transparent color.
Public propertyToolTipStyle
Gets and sets the tooltip label style.
Public propertyToolTipTitle
Gets and sets the button title tooltip text.
Public propertyUniqueName
Gets and sets the unique name of the ButtonSpec.
Top
Methods
  NameDescription
Public methodClone
Make a clone of this object.
Protected methodConvertToButtonOrientation
Convert from palette specific button orientation to resolved button orientation.
Protected methodConvertToButtonStyle
Convert from palette specific button style to resolved button style.
Protected methodConvertToRelativeEdgeAlign
Convert from palette specific edge alignment to resolved edge alignment.
Public methodCopyFrom
Value copy from the provided source to ourself.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodDispose
Releases all resources used by the Component.
(Inherited from Component.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the Component and optionally releases the managed resources.
(Inherited from Component.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
Protected methodGenerateClick
Generates the Click event.
Public methodGetChecked
Gets the button checked state.
Public methodGetColorMap
Gets the color to remap from the image to the container foreground.
Public methodGetEdge
Gets the edge for the button.
Public methodGetEnabled
Gets the button enabled state.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetImage
Gets the button image.
Public methodGetImageTransparentColor
Gets the image transparent color.
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetLocation
Gets the button location.
Public methodGetLongText
Gets the button long text.
Public methodGetOrientation
Gets the button orienation.
Protected methodGetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
Public methodGetShortText
Gets the button short text.
Public methodGetStyle
Gets the button style.
Public methodGetToolTipTitle
Gets the button tooltip title text.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetView
Get the current view associated with the button spec.
Public methodGetViewEnabled
Gets a value indicating if the associated view is enabled.
Public methodGetVisible
Gets the button visible value.
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates 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 methodOnButtonSpecPropertyChanged
Raises the ButtonSpecPropertyChanged event.
Protected methodOnClick
Raises the Click event.
Protected methodOnCommandPropertyChanged
Handles a change in the property of an attached command.
Public methodPerformClick
Generates a Click event for the control.
Public methodPerformClick(EventArgs)
Generates a Click event for the control.
Public methodResetAllowInheritExtraText
Resets the AllowInheritExtraText property to its default value.
Public methodResetAllowInheritImage
Resets the AllowInheritImage property to its default value.
Public methodResetAllowInheritText
Resets the AllowInheritText property to its default value.
Public methodResetAllowInheritToolTipTitle
Resets the AllowInheritToolTipTitle property to its default value.
Public methodResetColorMap
Resets the ColorMap property to its default value.
Public methodResetExtraText
Resets the ExtraText property to its default value.
Public methodResetImage
Resets the Image property to its default value.
Public methodResetImageTransparentColor
Resets the ImageTransparentColor property to its default value.
Public methodResetOrientation
Resets the Orientation property to its default value.
Public methodResetStyle
Resets the Style property to its default value.
Public methodResetText
Resets the Text property to its default value.
Public methodResetToolTipBody
Resets the ToolTipBody property to its default value.
Public methodResetToolTipImage
Resets the ToolTipImage property to its default value.
Public methodResetToolTipImageTransparentColor
Resets the ToolTipImageTransparentColor property to its default value.
Public methodResetToolTipStyle
Resets the ToolTipStyle property to its default value.
Public methodResetToolTipTitle
Resets the ToolTipTitle property to its default value.
Public methodResetUniqueName
Resets the UniqueName property to its default value.
Public methodSetView
Sets the current view associated with the button spec.
Public methodToString
Returns a string that represents the current defaulted state.
(Overrides ComponentToString.)
Top
Events
  NameDescription
Public eventButtonSpecPropertyChanged
Occurs whenever a button specification property has changed.
Public eventClick
Occurs whenever a button specification property has changed.
Public eventDisposed
Occurs when the component is disposed by a call to the Dispose method.
(Inherited from Component.)
Top
Extension Methods
See Also
Inheritance Hierarchy