Show / Hide Table of Contents

Method wndChildFinder.FindInList


Overload

Finds the specified control in a list of controls. The wndChildFinder.Result property will be the control.

public int FindInList(IEnumerable<wnd> a, wnd wParent = default)
Parameters
a  (IEnumerable<wnd>)

List of controls, for example returned by wnd.getwnd.Children.

wParent  (wnd)

Direct or indirect parent window. Used only for flag DirectChild.

Returns
int

0-based index, or -1 if not found.