Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

events

Event names

Syntax

events('classname')
events(obj)
e = events(...)

Description

events('classname') displays the names of the public events for the MATLAB® class classname, including events inherited from superclasses.

events(obj) obj is a scalar or array of objects of a MATLAB class.

e = events(...) returns the event names in a cell array of strings.

An event is public when the value of its ListenAccess attribute is public and its Hidden attribute value is false (default values for both attributes). See Event Attributes for a complete list of attributes.

events is also a MATLAB class-definition keyword. See classdef for more information on class definition keywords.

Examples

Get the names of the public events for the handle class:

events('handle')
Events for class handle:

    ObjectBeingDestroyed

Related Examples

See Also

|

Introduced before R2006a

Was this topic helpful?