ZForge.Controls.TreeViewAdv.Tree.ReorderColumnState.MouseMove C# (CSharp) Method

MouseMove() public method

public MouseMove ( MouseEventArgs args ) : bool
args MouseEventArgs
return bool
        public override bool MouseMove(MouseEventArgs args)
        {
            _dropColumn = null;
            _location = new Point(args.X + Tree.OffsetX, 0);
            int x = 0;
            foreach (TreeColumn c in Tree.Columns)
            {
                if (c.IsVisible)
                {
                    if (_location.X < x + c.Width / 2)
                    {
                        _dropColumn = c;
                        break;
                    }
                    x += c.Width;
                }
            }
            Tree.UpdateHeaders();
            return true;
        }