Spot elevation through points

Hello.
I am trying to place elevation dimensions that are placed at the starting point and end point of the red line that I have selected … this in order to extract the height of these points.