Click or drag to resize

Button Class

Crestron button object.
Inheritance Hierarchy

Namespace: Crestron.SimplSharpPro.DeviceSupport
Assembly: SimplSharpPro (in SimplSharpPro.dll) Version: 2.21.121
Syntax
C#
public class Button

The Button type exposes the following members.

Properties
 NameDescription
Public propertyHorizontalLocation Get the horizontal location of button as defined on the device.
Public propertyName Name of this button on the device.
Public propertyNumber Number of this button on the device.
Public propertyState Current state of the button last received from the device.
Public propertyUserObject User specific object for this button.
Public propertyVerticalLocation Get the vertical location of the button as defined on the device.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToString Override of ToString method.
(Overrides ObjectToString)
Top
Operators
 NameDescription
Public operatorStatic member(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.
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also