Module 3: Hydrostatic forces on submerged bodies
  Lecture 6: Calculation of vertical component
 
 
The answer is: It is for the 1st case and for the 2nd case.
 
(Fig. 6h)
 
(Fig. 6i)
It is always the weight of the liquid column trapped between the surface and the free surface of the liquid.
Note: along ‘AB'. Therefore, the pressure on AB is the same as that on any horizontal surface at the same altitude or depth.