You cannot type directly on a line. What you can do is write the text first and then underline it.