Describe event of MATLAB class
meta.event class provides information
about MATLAB® class events. The read/write properties of the
correspond to event attributes and are specified only from within
You can query the read-only properties of the
to obtain information that is specified syntactically by the class
(for example, to obtain the name of the class defining the event).
You cannot instantiate a
directly. Obtain a
meta.event object from the
which contains an array of
one for each event defined by the class. For example, replace
the name of the class whose events you want to query:
mco = ?ClassName; elist = mco.EventList; elist(1).Name; % name of first event in list
to obtain a
meta.class object from a class instance:
mco = metaclass(obj);
Name of the event.
This property holds the first comment line following an event name inside an events block.
This property holds the comment lines immediately following
an event definition up to the first line that does not begin with
a comment. The lines are in a 1-by-n MATLAB
Determines where you can create listeners for the event.
Determines where code can trigger the event.