Create a TextBox in which each line has a different horizontal alignment

Contents
[ ]

The following sample code creates three lines and sets the horizontal alignment of each of them.