Suppose you have a macroscopic body that's charged. We can assume that the charge will be distributed in some way into the body. In this situation, by definition, the total electric force acting on the body is the sum of all the little forces that the charged point like subsection of the body experience, but if we want to thing about the charged body as made of point like subsection then we get an infinite amount of infinitesimal subsection, this implies that we have to perform the integral instead of the sum.
Long story short: the electric force experienced by a single point like subsection of the body is:
$$d\vec{F}=\vec{E}\rho dV$$
where $\vec{E}$ is of course the electric field in that point and $\rho$ is the charge density.
So to get the total force $\vec{F}$ acting on the body we have to perform the integral:
$$\vec{F}=\int _V \rho(\vec{x}) \vec{E}(\vec{x})dV$$
This is it. However: A fundamental law of nature is that nobody wants to compute integrals! Can we find some handy shortcut? Well: if the electric field $\vec{E}$ is constant in space (or if we can approximate it this way ;)) there is a pretty nice simplification:
$$\vec{F}=\int _V \rho(\vec{x}) \vec{E}(\vec{x})dV=\vec{E}\int _V \rho(\vec{x})dV=\vec{E}Q$$
where $Q$ is the total charge of the body, an analogous concept to the total mass, but of course not the same thing. Of course in this case the electric force is applied in the center of charge ($\vec{C}$), analogous concept to the center of mass:
$$\vec{C}=\frac{1}{Q}\int _V\rho(\vec{x})\vec{x}dV$$
Even better: if the charge distribution is simmetrically distributed in some nice way we can easily guess the position of $\vec{C}$ most of the times, this way we don't have to perform the integral!
Keep in mind: in some situation the center of mass and the center of charge share position, but this does not happen most of the times! In fact to calculate the position of the center of mass you integrate the mass density, but to calculate the position of the center of charge, as we saw, you have to integrate the charge density.