JVCL Help:TJvInspectorTMethodItem.IndexOfMethod@Integer@string

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Determines the index of an event handler in the list of event handlers.


Pascal

 functionIndexOfMethod(constMethod: TMethod): Integer; overload;
functionIndexOfMethod(constInstanceIndex: Integer; constMethodName: string): Integer; overload;
functionIndexOfMethod(constInstance: TObject; constMethodName: string): Integer; overload;
functionIndexOfMethod(constInstanceName: string; constMethodName: string): Integer; overload;


Parameters

Parameters Description
const Method: TMethod Method pointer to locate. The method pointer provides a Data address (the instance) and a Code address (the address of the handler).
const InstanceIndex: Integer 0-based index in the list of added instances of the instance to search.
const MethodName: string Name (case insensitive) of the handler to locate.
const Instance: TObject TObject instance to search. If the specified instance does not exist, -1 will be returned.
const InstanceName: string Name (case insensitive) of the instance to search. If the specified instance does not exist, -1 will be returned.


Description

IndexOfMethod determines the 0-based index of an event handler in the list of event handlers. If the specified handler does not exist, -1 will be returned. There are four overloaded versions of this method that allow various combinations of how you can specify which instance to search in and which handler to locate.


See Also

TJvInspectorTMethodItem.IndexOfInstance, TJvInspectorTMethodItem.AddMethod, TJvInspectorTMethodItem.DeleteMethod, TJvInspectorTMethodItem.ClearMethods


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page