The property of electrons that affects the molecular shape is the charge. Electrons, which all have negative charges, will repel each other when positioned side by side. The more lone pairs of electron present, there will be higher repulsion among them, which affects the whole geometry of the compound.