AnimatGuiCtrls.Controls.DropDownControlBase.GetPlainButtonState C# (CSharp) Method

GetPlainButtonState() private method

Determines the state in which to render the dropdown button portion of the control (when not using visual styles).
private GetPlainButtonState ( ) : ButtonState
return ButtonState
        private ButtonState GetPlainButtonState()
        {
            if (!Enabled)
                return ButtonState.Inactive;
            else if (droppedDown || (dropDownButtonBounds.Contains(PointToClient(Cursor.Position)) && ((MouseButtons & MouseButtons.Left) == MouseButtons.Left)))
                return ButtonState.Pushed;
            else
                return ButtonState.Normal;
        }