Class Button
Represents a button control.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DesktopMagicPluginAPI.Inputs
Assembly: DesktopMagicPluginAPI.dll
Syntax
public class Button : Element
Constructors
| Improve this Doc View SourceButton(String)
Initializes a new instance of the Button class with the provided value.
Declaration
public Button(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | value | The text caption displayed in the Button control. |
Properties
| Improve this Doc View SourceValue
Gets or sets the text caption displayed in the Button element.
Declaration
public string Value { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceClick()
Triggers the OnClick event.
Declaration
public void Click()
Events
| Improve this Doc View SourceOnClick
Occurs when the button gets clicked.
Declaration
public event Action OnClick
Event Type
| Type | Description |
|---|---|
| System.Action |