Exemple #1
0
        public LateBindingApi.Excel.Comment Previous()
        {
            object returnValue = Invoker.MethodReturn(this, "Previous", null);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.Comment newClass = new LateBindingApi.Excel.Comment(this, returnValue);
            return(newClass);
        }
        public LateBindingApi.Excel.Comment get__Default(Int32 index)
        {
            object[] paramArray = new object[1];
            paramArray[0] = index;
            object returnValue = Invoker.PropertyGet(this, "_Default", paramArray);

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