Show / Hide Table of Contents

Class Button

Represents a button control.

Inheritance
System.Object
Element
Button
Inherited Members
Element.OnValueChanged
Element.ValueChanged()
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 Source

Button(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 Source

Value

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 Source

Click()

Triggers the OnClick event.

Declaration
public void Click()

Events

| Improve this Doc View Source

OnClick

Occurs when the button gets clicked.

Declaration
public event Action OnClick
Event Type
Type Description
System.Action
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX