# Programmatically read a Container's Border Title

**URL:** <https://forum.inductiveautomation.com/t/programmatically-read-a-containers-border-title/12720>\
**Category:** Ignition\
**Created:** [February 24, 2017, 9:34pm UTC](https://forum.inductiveautomation.com/t/programmatically-read-a-containers-border-title/12720 "2017-02-24T21:34:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesrom](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cesrom](https://forum.inductiveautomation.com/u/cesrom)\
**Post date:** [February 24, 2017, 9:34pm UTC](https://forum.inductiveautomation.com/t/programmatically-read-a-containers-border-title/12720/1 "2017-02-24T21:34:01Z")

</div>

I have a Plain Titled Border container, and I would like to read its title through scripting.

I would like to read the Container’s title in a similar way as one would read a Label’s text. E.g. `event.source.parent.getComponent("Label").text`

I’ve read how to use toBorder() to create my border, but I haven’t found a way to read the title of such border.

Thanks.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 25, 2017, 1:00am UTC](https://forum.inductiveautomation.com/t/programmatically-read-a-containers-border-title/12720/2 "2017-02-25T01:00:44Z")

</div>

```auto
<component>.getBorder().getTitle()
```

will return the title text of Plain, Line, or Titled Panel borders.

---

<div class="post-metadata">

**Author:** ![cesrom](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cesrom](https://forum.inductiveautomation.com/u/cesrom)\
**Post date:** [March 8, 2017, 9:54pm UTC](https://forum.inductiveautomation.com/t/programmatically-read-a-containers-border-title/12720/3 "2017-03-08T21:54:21Z")

</div>

Thanks! ![:thumb_right:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/2026e28c0c425034352c1b75807edf956adc75f4.gif ":thumb\_right:")
