public virtual void Clear()
{
CheckDisposed();
int citems = m_list.Count;
ClearAllItems();
var cda = m_owner.DataAccess as IVwCacheDa;
if (cda == null)
return; // This can happen, when this is called when 'disposing' is false.
cda.CacheVecProp(InnerFwListBox.khvoRoot, InnerFwListBox.ktagItems, new int[0], 0);
if (!m_owner.Updating)
{
m_owner.DataAccess.PropChanged(null,
(int) PropChangeType.kpctNotifyAll,
InnerFwListBox.khvoRoot, InnerFwListBox.ktagItems,
0, 0, citems);
}
m_owner.SelectedIndex = -1;
Debug.Assert(m_owner.DataAccess.get_VecSize(InnerFwListBox.khvoRoot, InnerFwListBox.ktagItems) == 0);
}