EventLoggerEventArgs - harborsiem/WinForms-Ribbon GitHub Wiki

EventLoggerEventArgs

EventLoggerEventArgs is derived from EventArgs. When the LogEvent is fired, the sender parameter has Type EventLogger

Public constructors, methods, properties and events:

Constructors:

EventLoggerEventArgs is created by EventLogger for the event LogEvent.

Methods:

Properties:

Name and (Type) Description
EventType (EventType) EventType enum (). Identifies the types of events associated with a Ribbon.
Modes (int) The application modes. Only used when a EventType ApplicationModeSwitched has been fired. In all other cases it is set to 0.
CommandId (uint) The Id of the Command directly related to the event, which is specified in the markup resource file.
CommandName (string) The Command name that is associated with CommandId.
ParentCommandId (uint) The Id for the parent of the Command, which is specified in the markup resource file.
ParentCommandName (string) The Command name of the parent that is associated with CommandId.
SelectionIndex (int) SelectionIndex is used only when a EventType CommandExecuted has been fired in response to the user selecting an item within a ComboBox or item gallery. In those cases, SelectionIndex contains the index of the selected item. In all other cases, it is set to 0.
Location (EventLocation) Identifies the locations where events associated with a Ribbon control can originate.

Events: