Exemplo n.º 1
0
        public LateBindingApi.Excel.CubeField 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.CubeField newClass = new LateBindingApi.Excel.CubeField(this, returnValue);
            return(newClass);
        }
Exemplo n.º 2
0
        public LateBindingApi.Excel.CubeField AddSet(string name, string caption)
        {
            object[] paramArray = new object[2];
            paramArray[0] = name;
            paramArray[1] = caption;
            object returnValue = Invoker.MethodReturn(this, "AddSet", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.CubeField newClass = new LateBindingApi.Excel.CubeField(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.CubeField returnClass = new LateBindingApi.Excel.CubeField(this, itemProxy);
                isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null);
                yield return(returnClass);
            }
        }