Only the first line is underlined.
The underline always follows the text wherever placed on the screen.
The underline follows the text alignment. When you change from Left, Center, Right or Justified, the underline auto-adjusts.
The underline automatically sizes to match the width of the text box (if you use multiline, then it will match the width of the widest line).