Dynamic text in Middle

Is there a way to make dynamic text be aligned in the middle (not the center) of a multiline textbox? basically it needs to look like this: (it shows up not only centered, but in the middle of the text box)

[center]---------------------------

[/center]
[center]asdfal;sdfasdf
[/center]
[center]


[/center]