CommandEvent Class

https://html.spec.whatwg.org/multipage/interaction.html#commandevent

public sealed class CommandEvent : Event
Inheritance
Event CommandEvent

Constructors

NameDescription
CommandEvent(string, CommandEventInit?)Creates a command event with the given type and initialization dictionary.

CommandEvent(string, CommandEventInit?)

HtmlEvents.cs

Creates a command event with the given type and initialization dictionary.

public CommandEvent(string type, CommandEventInit? eventInitDict = null)

Properties

NameDescription
CommandGets the command that was invoked.
Sourcehttps://html.spec.whatwg.org/multipage/interaction.html#dom-commandevent-source: the source retargeted against the current target.

Gets the command that was invoked.

public string Command { get; }

https://html.spec.whatwg.org/multipage/interaction.html#dom-commandevent-source: the source retargeted against the current target.

public Element? Source { get; }