Create TextBox in which each line is having different Horizontal Alignment

Contents
[ ]

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