# How do you get the slot index of a widget in a wrap box?

**URL:** <https://forums.unrealengine.com/t/how-do-you-get-the-slot-index-of-a-widget-in-a-wrap-box/419190>\
**Category:** UI\
**Tags:** unreal-engine, Widget, Blueprint, question, slot-name\
**Created:** [March 7, 2018, 2:29pm UTC](https://forums.unrealengine.com/t/how-do-you-get-the-slot-index-of-a-widget-in-a-wrap-box/419190 "2018-03-07T14:29:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cherking](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@cherking](https://forums.unrealengine.com/u/cherking)\
**Post date:** [March 7, 2018, 2:29pm UTC](https://forums.unrealengine.com/t/how-do-you-get-the-slot-index-of-a-widget-in-a-wrap-box/419190/1 "2018-03-07T14:29:57Z")

</div>

So you know how a wrap box organizes children in order from left to right, top to bottom? Are the slots organized into an array? For instance the first widget to be added to a wrap box gets slot index 0, then the next gets 1, etc like an array.

In any case, say I added 5 widgets to the wrap box at run time. Then I removed just the fourth widget through the use of an implemented delete button. How do I get the slot index of this fourth widget?
