Due to quantum size effects (QSEs), the isobaric thermal expansion coefficient and isothermal compressibility well defined for macroscopic systems are invalid for finite-size systems. The two parameters are redefined and calculated for a finite-size ideal Fermi gas confined in a rectangular container. It is found that the isobaric thermal expansion coefficient and isothermal compressibility are generally anisotropic, i.e., they are generally different in different directions. Moreover, it is found the thermal expansion coefficient may be negative in some directions under the condition that the pressures in all directions are kept constant.