LayoutFarm.Demo_DragSelectionBox.FindUnderlyingElements C# (CSharp) Method

FindUnderlyingElements() private method

private FindUnderlyingElements ( UIControllerBox controllerBox ) : List
controllerBox UIControllerBox
return List
        List<LayoutFarm.UI.UIBox> FindUnderlyingElements(UIControllerBox controllerBox)
        {
            var dragOverElements = new List<LayoutFarm.UI.UIBox>();
            Rectangle controllerBoxArea = controllerBox.Bounds;
            int j = bgbox.ChildCount;
            for (int i = 0; i < j; ++i)
            {
                var box = bgbox.GetChild(i) as LayoutFarm.UI.UIBox;
                if (box == null || controllerBox.TargetBox == box)
                {
                    continue;
                }

                //------------- 
                if (controllerBoxArea.IntersectsWith(box.Bounds))
                {
                    dragOverElements.Add(box);
                }
            }
            return dragOverElements;
        }
        void SetupControllerBoxProperties(UIControllerBox controllerBox)