/// <summary> /// Replace object in specified place. /// Used for Undo. /// </summary> public void Replace(int index, DrawObject obj) { if (index >= 0 && index < _mokkanObjList.Count) { _mokkanObjList.RemoveAt(index); _mokkanObjList.Insert(index, obj); } }