Subsequently, automatic adjustment to an optimal focusing condition in accordance with the wafer height detected will be performed without executing focusing each time an electron beam image is obtained.
Electron beam images can be obtained continuously at a high speed.