Пример #1
0
        public LateBindingApi.Excel.TableStyle Duplicate()
        {
            object returnValue = Invoker.MethodReturn(this, "Duplicate", null);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.TableStyle newClass = new LateBindingApi.Excel.TableStyle(this, returnValue);
            return(newClass);
        }
        public LateBindingApi.Excel.TableStyle 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.TableStyle newClass = new LateBindingApi.Excel.TableStyle(this, returnValue);
            return(newClass);
        }
        public LateBindingApi.Excel.TableStyle Add(string tableStyleName)
        {
            object[] paramArray = new object[1];
            paramArray[0] = tableStyleName;
            object returnValue = Invoker.MethodReturn(this, "Add", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.TableStyle newClass = new LateBindingApi.Excel.TableStyle(this, returnValue);
            return(newClass);
        }
 public LateBindingApi.Excel.TableStyle this[object index]
 {
     get
     {
         object[] paramArray = new object[1];
         paramArray[0] = index;
         object returnValue = Invoker.MethodReturn(this, "Item", paramArray);
         if (null == returnValue)
         {
             return(null);
         }
         LateBindingApi.Excel.TableStyle newClass = new LateBindingApi.Excel.TableStyle(this, returnValue);
         return(newClass);
     }
 }
        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.TableStyle returnClass = new LateBindingApi.Excel.TableStyle(this, itemProxy);
                isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null);
                yield return(returnClass);
            }
        }