A method is developed for estimation of the vertical structure of the magnetic field in active regions using multi-wave spectral-polarization measurements of radio waves which gives not only the dependence of magnetic field strength on height but also determines two-dimensional form of a magnetic flux tube, emitted in the microwave range of wavelengths.