How to edit the anchor for 3D Text?

I see in the inspector that you can edit the anchor of 3D text under text mesh, but I was wondering if this was possible to edit in code.