The paper theoretically studies the effect of a non-uniform electric field on thin ferromagnetic films with a planar distribution of magnetization. It is proven that in this case the presence of inhomogeneous magnetoelectric interaction has virtually no effect on the magnetic structure of the sample far from its boundaries, but leads to the appearance of edge effects consisting in the formation of solitary magnetic inhomogeneities at the film boundary. In this case, the structure and properties of such inhomogeneities are completely determined by the values of the electric field potential at the sample boundary. Both for the general case and for a number of specific configurations of the external field, the distribution of magnetization in the region of inhomogeneity is found, and its energy is calculated.
.