public void InsertSubItem(MenuItem item, int index) { if (index < 0 || index > ChildItems.Count) { throw new IndexOutOfRangeException(); } ChildItems.InsertItem(index, item); }
public void AddSubItem(MenuItem item) { ChildItems.Add(this, item); }