The 2D scattering problem of an electron by a magnetized nanoparticle is solved in thernBorn approximation with account of the dipole - dipole interaction of the magneticrnmoments of electron and nanomagnet. The scattering amplitudes in this problemrnare the two-component spinors. They are obtained as functions of the electron spinrnorientation, the electron energy and show anisotropy in scattering angle. The initiallyrnpolarized beam of electrons scattered by nanomagnet consists of electrons with no spinrnflipped and spin flipped. The majority of electrons with no spin flipped are scatteredrnby small angles. This can be used as one method of controlling spin currents.rn2D spin-dependent scattering of slow unpolarized beams of electrons by chargedrnnanomagnets is analyzed in the Born approximation. The obtained scattering lengthsrnare larger than those from the neutral nanomagnets approximately by one order.rnIt is shown that for particular parameters of the system it is possible to polarizerncompletely the scattered electrons in a narrow range of scattering angles. The mostrnsuitable system for realization of these effects is 2D Si electron gas with immersedrnnanomagnets.rnThe 2D spin-dependent electron scattering by the linear chain of periodic nanomagnetsrnwith account of the diffraction effects was studied. This effect takes placernin 2D electron gas with immersed nanomagnets. By tuning a distance between nanomagnets,rnit is possible to obtain diffraction maximum of the scattered electrons atrnscattering angle, which corresponds to complete spin polarization of electrons. Therntotal diffraction scattering lengths are proportional to N2 (N is a number of nanomagnets).rnThe proposed system can be an efficient separator of spin polarized currents