| 
 | 
 | 
 | 
| ButtonPartClass Class | 
ButtonPartClass Class (Softelvdm.Controls Namespace)
An instance of the ButtonPartClass class represents a button part.
Cells can contain one or several push buttons (instances of the ButtonPartClass). Each button can operate independently with its own attributes and properties.
A push button can contain an image or text (not both).
The Action event can be used to handle a button click.
SftTree/NET 2.0: It is also possible to handle the control's ItemClick event. If the Action event is used, the ItemClick event is not raised.
| VB | Public Class ButtonPartClass Inherits GenericPartClass | 
| C# | public class ButtonPartClass : GenericPartClass | 
| C++ | public ref class ButtonPartClass : public GenericPartClass | 
| Public | Fields | ||||
| Protected | Constructors | Properties | Fields | 
 | 
| Description | |
| Initializes a new instance of the ButtonPartClass class. | |
| Description | |
| Defines the rotation of the part. | |
| Defines the button appearance. | |
| Defines whether the button is enabled. | |
| Defines the button's text font. | |
| Defines the horizontal alignment within the part's available space. | |
| Defines the button image. | |
| Returns the orientation of parts within a cell. This is defined by the cell or the owner of the cell. | |
| Defines the part alignment of this part relative to its container and other parts. | |
| Returns the owner of the part, usually an object derived from CellBaseClass. | |
| Defines whether the button is currently pressed. | |
| Defines application-specific data. | |
| Defines an application-specific string. | |
| Defines the button text. | |
| Defines whether the button is a toggle button (Toggle property). | |
| Defines the vertical alignment within the part's available space. | |
| Returns the visibility status of the part. | |
| Description | |
| 
 | Determines whether the specified Object is equal to the current Object. | 
| 
 | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. | 
| 
 | Gets the Type of the current instance. | 
| 
 | Determines whether the specified Object instances are the same instance. | 
| 
 | Returns a String that represents the current Object. | 
| Description | |
| Occurs when a part's action is triggered by the user. | |
| Description | |
| Calculates the size of the smallest rectangle that can contain the rotated rectangle of a given size, based on the part's Angle property. | |
| Calculates the size of the part. | |
| Calculates the actual width of the part, based on the width of the rotated part's containing rectangle. | |
| Defines whether the part is considered when calculating the outline rectangle of a cell. | |
| Creates an identical copy of the part. | |
| Copies information from one part to another. | |
| 
 | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. | 
| Returns the current visibility status of a part, based on the part's VisibleAppearance property. | |
| 
 | Creates a shallow copy of the current Object. | 
| Called when the contents of the part changed. | |
| Used to perform various actions the part supports, like rendering the part, hit-testing, determining its position and responding to mouse button clicks. | |
Version Information
Supported in version 1.0.
   Products Table
See Also Softelvdm.Controls Namespace