BrightIdeasSoftware.ObjectListView.ShouldStartCellEdit C# (CSharp) Method

ShouldStartCellEdit() protected method

Should we start editing the cell in response to the given mouse button event?
protected ShouldStartCellEdit ( MouseEventArgs e ) : bool
e MouseEventArgs
return bool
        protected virtual bool ShouldStartCellEdit(MouseEventArgs e)
        {
            if (this.IsCellEditing)
                return false;

            if (e.Button != MouseButtons.Left)
                return false;

            if ((Control.ModifierKeys & (Keys.Shift | Keys.Control | Keys.Alt)) != 0)
                return false;

            if (this.lastMouseDownClickCount == 1 && this.CellEditActivation == CellEditActivateMode.SingleClick)
                return true;

            return (this.lastMouseDownClickCount == 2 && this.CellEditActivation == CellEditActivateMode.DoubleClick);
        }
ObjectListView