internal void addItem(ChartObject item) { Arrow arrow = item as Arrow; if (arrow != null) arrow.updateNodeCollections(); addToObjColl(item); zOrder.Add(item); updateZOrder(zOrder.Count - 1); item.onAdd(); // update document size if needed if (autoSizeDoc != MindFusion.FlowChartX.AutoSize.None) sizeDocForItem(item); }