Create TextBox in which each line is having different Horizontal Alignment

Create TextBox in which each line is having different Horizontal Alignment

The following sample code creates three lines and sets the horizontal alignment of each of them. Please download the output excel file generated by the code for your reference.