# horizontalTextPosition

**URL:** <https://forum.inductiveautomation.com/t/horizontaltextposition/14851>\
**Category:** Ignition\
**Created:** [July 21, 2017, 9:55am UTC](https://forum.inductiveautomation.com/t/horizontaltextposition/14851 "2017-07-21T09:55:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stage](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@stage](https://forum.inductiveautomation.com/u/stage)\
**Post date:** [July 21, 2017, 9:55am UTC](https://forum.inductiveautomation.com/t/horizontaltextposition/14851/1 "2017-07-21T09:55:56Z")

</div>

Hi All,  
What’s the script property int value for horizontalTextPosition?  
Thanks.

Stefano

---

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [July 21, 2017, 12:44pm UTC](https://forum.inductiveautomation.com/t/horizontaltextposition/14851/2 "2017-07-21T12:44:26Z")

</div>

Put this script in the propertyChange event of your component and watch the output console for the results in preview mode as you change the property in the designer. That will allow you to see the integer value for each state.

`
if event.propertyName == "horizontalTextPosition":
    print event.newValue`

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [July 21, 2017, 3:42pm UTC](https://forum.inductiveautomation.com/t/horizontaltextposition/14851/3 "2017-07-21T15:42:57Z")

</div>

They are Java Swing constants: LEFT, CENTER, RIGHT, LEADING, TRAILING  
You can find the numerical values here: [https://docs.oracle.com/javase/7/docs/api/constant-values.html#javax.swing.SwingConstants.BOTTOM](https://docs.oracle.com/javase/7/docs/api/constant-values.html#javax.swing.SwingConstants.BOTTOM)
