MATLAB Function Reference    
isevent (COM)

Determine if an item is an event of a COM control



   Handle for a MATLAB COM control object.

   Name of the item to test.


Returns a logical 1 (true) if the specified name is an event that can be recognized and responded to by the control, h. Otherwise, isevent returns logical 0 (false).

isevent returns the same value regardless of whether the specified event is registered with the control or not. In order for the control to respond to the event, you must first register the event using either actxcontrol or registerevent.

The string specified in the name argument is not case sensitive.


Create an mwsamp control and test to see if DblClick is an event recognized by the control. isevent returns true:

Try the same test on Redraw, which is a method, and isevent returns false:

See Also

events, eventlisteners, registerevent, unregisterevent, unregisterallevents

  isequalwithequalnans isfield