/// <summary> /// Inserts an item into the collection at the specified index. /// </summary> /// <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param><param name="item">The object to insert.</param> protected override void InsertItem(int index, ChartBehavior item) { item.ChartArea = Area; item.AdorningCanvas = Area.GetAdorningCanvas(); if (item.AdorningCanvas != null) { item.InternalAttachElements(); } base.InsertItem(index, item); }