.. highlightlang:: us .. index:: TBSetAlignHorz .. _tbsetalignhorz: TBSetAlignHorz ============== .. us.tag TBSetAlignHorz ENGLISH TB_Set :ref:`TBSetAlignHorz` sets the horizontal text alignment. .. function:: bool = TBSetAlignHorz(hText, rsAlign) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hText The handle of a text object created with :ref:`TBCreate`. .. uparam:: rsAlign *rsAlign* is one of the following values: .. list-table:: :header-rows: 1 * - Value - Meaning * - LEFT(4) - Left aligned * - CENTER (2) - Center between left and right * - RIGHT (1) - Right aligned .. seealso:: :ref:`overview-text-objects`, :ref:`TBCreate`, :ref:`TBSetAlignVert`, :ref:`TBGetAlignHorz` :sub:`id-441321`