Exemplo n.º 1
0
        public LateBindingApi.Excel.PublishObject get__Default(object index)
        {
            object[] paramArray = new object[1];
            paramArray[0] = index;
            object returnValue = Invoker.PropertyGet(this, "_Default", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.PublishObject newClass = new LateBindingApi.Excel.PublishObject(this, returnValue);
            return(newClass);
        }
Exemplo n.º 2
0
        public LateBindingApi.Excel.PublishObject Add(LateBindingApi.Excel.Enums.XlSourceType sourceType, string filename)
        {
            object[] paramArray = new object[2];
            paramArray[0] = sourceType;
            paramArray[1] = filename;
            object returnValue = Invoker.MethodReturn(this, "Add", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.PublishObject newClass = new LateBindingApi.Excel.PublishObject(this, returnValue);
            return(newClass);
        }
Exemplo n.º 3
0
        public IEnumerator GetEnumerator()
        {
            object    enumProxy  = Invoker.PropertyGet(this, "_NewEnum");
            COMObject enumerator = new COMObject(this, enumProxy);

            Invoker.Method(enumerator, "Reset", null);
            bool isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null);

            while (true == isMoveNextTrue)
            {
                object itemProxy = Invoker.PropertyGet(enumerator, "Current", null);
                LateBindingApi.Excel.PublishObject returnClass = new LateBindingApi.Excel.PublishObject(this, itemProxy);
                isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null);
                yield return(returnClass);
            }
        }
Exemplo n.º 4
0
        public LateBindingApi.Excel.PublishObject Add(LateBindingApi.Excel.Enums.XlSourceType sourceType, string filename, object sheet, object source, object htmlType, object divID, object title)
        {
            object[] paramArray = new object[7];
            paramArray[0] = sourceType;
            paramArray[1] = filename;
            paramArray[2] = sheet;
            paramArray[3] = source;
            paramArray[4] = htmlType;
            paramArray[5] = divID;
            paramArray[6] = title;
            object returnValue = Invoker.MethodReturn(this, "Add", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.PublishObject newClass = new LateBindingApi.Excel.PublishObject(this, returnValue);
            return(newClass);
        }