SIL.FieldWorks.Common.Widgets.FwListBox.ObjectCollection.RemoveAt C# (CSharp) Method

RemoveAt() public method

public RemoveAt ( int index ) : void
index int
return void
			public virtual void RemoveAt(int index)
			{
				CheckDisposed();

				m_list.RemoveAt(index);
				int hvoObj = m_owner.DataAccess.get_VecItem(
					InnerFwListBox.khvoRoot, InnerFwListBox.ktagItems, index);
				m_owner.DataAccess.DeleteObjOwner(
					InnerFwListBox.khvoRoot, hvoObj, InnerFwListBox.ktagItems, index);
				if (!m_owner.Updating)
				{
					m_owner.DataAccess.PropChanged(null,
												   (int) PropChangeType.kpctNotifyAll,
												   InnerFwListBox.khvoRoot, InnerFwListBox.ktagItems,
												   index, 0, 1);
				}

				if (m_owner.SelectedIndex >= index)
					m_owner.SelectedIndex = m_owner.SelectedIndex - 1;
			}
		}