public List <HwndObject> GetChildren() { List <HwndObject> list = new List <HwndObject>(); foreach (IntPtr ptr in HwndInterface.EnumChildren(this.Hwnd)) { list.Add(new HwndObject(ptr)); } return(list); }
/// <summary> /// Seeks all children of this Hwnd Object. /// </summary> /// <returns></returns> public List <HwndObject> GetChildren() { var result = new List <HwndObject>(); foreach (var hwnd in HwndInterface.EnumChildren(NativePtr)) { result.Add(new HwndObject(hwnd)); } return(result); }
/// <summary> /// Seeks all children of this Hwnd Object. /// </summary> /// <returns></returns> public List <HwndObject> GetChildren() { return(GetWindows(HwndInterface.EnumChildren(Hwnd))); }