API ReferenceSandbox.UI

PanelEventAttributeclass

Add an event listener to a `Sandbox.UI.Panel` event with the given name. See `Sandbox.UI.Panel.CreateEvent(System.String,System.Object,System.Nullable)`.

objectAttributePanelEventAttribute
Namespace
Sandbox.UI
Assembly
Sandbox.Engine
Declaration
public class Sandbox.UI.PanelEventAttribute : System.Attribute

Constructors1

Showing 1 constructors

public PanelEventAttribute(string name = null)PUBLICCONSTRUCTOR

ParameterTypeDescription
name = nullstring

Properties1

Showing 1 properties

public string Sandbox.UI.PanelEventAttribute.Name { get; set; }PUBLICGETSET

Name of the event to listen to.

Returns:string

On this page