# Get linked textbox

**URL:** <https://forums.visual-paradigm.com/t/get-linked-textbox/16165>\
**Category:** Plug-in & Open API\
**Created:** [June 26, 2020, 1:33pm UTC](https://forums.visual-paradigm.com/t/get-linked-textbox/16165 "2020-06-26T13:33:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxihm](https://avatars.discourse-cdn.com/v2/letter/m/73ab20/32.png) [@Maxihm](https://forums.visual-paradigm.com/u/Maxihm)\
**Post date:** [June 26, 2020, 1:33pm UTC](https://forums.visual-paradigm.com/t/get-linked-textbox/16165/1 "2020-06-26T13:33:53Z")

</div>

Hi,

I have an activity diagram with activityaction items.  
These items are linked to textbox (Generic connector).  
How can i get theses textbox from IActivityActionUIModel or IActivityAction?  
I guess I can get it with IActivityActionUIModel ?

Thanks for your help.  
Maxime

---

<div class="post-metadata">

**Author:** ![antony](https://forums.visual-paradigm.com/user_avatar/forums.visual-paradigm.com/antony/32/2411_2.png) [@antony](https://forums.visual-paradigm.com/u/antony)\
**Post date:** [June 28, 2020, 4:14pm UTC](https://forums.visual-paradigm.com/t/get-linked-textbox/16165/2 "2020-06-28T16:14:27Z")

</div>

Hi Maxihm,

Depend on the direction of the generic connector, you can find it using either toFromConnectorArray() or toToConnectorArray() method of IActivityActionUIModel (which are actually inherited from IBaseDiagramElement). Each element in the array would be an instance of IConnectorUIModel, you can then check if it is the generic connector you seek, and use getFromShape() or getToShape() to get the associated text box.

Hope this helps,

Antony.

---

<div class="post-metadata">

**Author:** ![Maxihm](https://avatars.discourse-cdn.com/v2/letter/m/73ab20/32.png) [@Maxihm](https://forums.visual-paradigm.com/u/Maxihm)\
**Post date:** [July 1, 2020, 5:28pm UTC](https://forums.visual-paradigm.com/t/get-linked-textbox/16165/3 "2020-07-01T17:28:47Z")

</div>

Thanks for your answer.  
It’s what I needed.
