How can i align a text over a line?

How can i align a text over a line? I know only "Align Elements By Edge". Here in attached image, i am doing this way (Rotate by 3-points method and move in to right position) Any easy method for align text over a line?