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

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