예제 #1
0
        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);
        }
예제 #2
0
        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());
        }