Class InteractionEventArgs<T>
- Namespace
- ConsoleAppVisuals.Models
- Assembly
- ConsoleAppVisuals.dll
The InteractionEventArgs
class is a generic class that represents the event arguments for the interactive elements.
public class InteractionEventArgs<T> : EventArgs
Type Parameters
T
- Inheritance
-
InteractionEventArgs<T>
- Inherited Members
Remarks
For more information, consider visiting the documentation available here.
Constructors
InteractionEventArgs(Status, T)
The InteractionEventArgs
class is a generic class that represents the event arguments for the interactive elements.
public InteractionEventArgs(Status status, T value)
Parameters
status
StatusThe status of the exit from the menu.
value
TThe value of the response after exiting the interactive element.
Remarks
For more information, consider visiting the documentation available here.
Properties
Status
Gets the status after exiting the interactive element. See the Status enumeration to know the possible values.
public Status Status { get; set; }
Property Value
- Status
Status.Escaped : pressed escape, Status.Deleted : pressed backspace, Status.Selected : pressed enter
Value
Gets the T
value of the response after exiting the interactive element.
public T Value { get; set; }
Property Value
- T