Button Class |
public class Button
The Button type exposes the following members.
| Name | Description | |
|---|---|---|
| HorizontalLocation | Get the horizontal location of button as defined on the device. | |
| Name | Name of this button on the device. | |
| Number | Number of this button on the device. | |
| State | Current state of the button last received from the device. | |
| UserObject | User specific object for this button. | |
| VerticalLocation | Get the vertical location of the button as defined on the device. |
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToString |
Override of ToString method.
(Overrides ObjectToString) |
| Name | Description | |
|---|---|---|
| (Button to Boolean) | Allow the user to convert the button to a boolean value to see if it's pressed or not. Provides an easier way to program without the need to check the enum. |