The ListBox item collection is always dynamic so if you remove an item there is no recourse to the original set. However, you can very easily create your own reference by using a non-visible listbox containing all possible entries as a static source. You can then use this list as an absolute reference matching entries to the dynamic visible collection using ...

idx = ListBoxSource.Items.IndexOf(ListBoxVisible.Items(n))