Centering a text in a scrollbox?

Everynone’s idea mixed with your own should work. I could add padding based on calculations of text screen real-estate. However, I am unable to find where to obtain the Y size for a textblock. Documentation is empty and all similar questions I’ve founded through searching have gone unanswered.