public ExcelObject TakeOverOldObject(ExcelObjectHandler objHandler) { ExcelObject existingObj = objHandler.GetObject(_name, GetType().Name); if (existingObj != null) { _counter = existingObj._counter + 1; objHandler.ObjList.Remove(existingObj); } return(this); }
public static object[,] mmDisplayObj(string objName, string objType) { ExcelObject obj = ObjectHandler.GetObject(objName, objType); if (obj == null) { return new object[, ] { { "Object not found." } } } ; return(obj.DisplayObject()); }