コード例 #1
0
 public void ItemRenamed(LateBindingApi.VBIDE.VBComponent vBComponent, string oldName)
 {
     object[] paramArray = new object[2];
     paramArray.SetValue(vBComponent, 0);
     paramArray[1] = oldName;
     Invoker.Method(this, "ItemRenamed", paramArray);
 }
コード例 #2
0
        public LateBindingApi.VBIDE.VBComponent Import(string fileName)
        {
            object[] paramArray = new object[1];
            paramArray[0] = fileName;
            object returnValue = Invoker.MethodReturn(this, "Import", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.VBIDE.VBComponent newClass = new LateBindingApi.VBIDE.VBComponent(this, returnValue);
            return(newClass);
        }
コード例 #3
0
        public LateBindingApi.VBIDE.VBComponent Add(LateBindingApi.VBIDE.Enums.Vbext_ComponentType componentType)
        {
            object[] paramArray = new object[1];
            paramArray[0] = componentType;
            object returnValue = Invoker.MethodReturn(this, "Add", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.VBIDE.VBComponent newClass = new LateBindingApi.VBIDE.VBComponent(this, returnValue);
            return(newClass);
        }
コード例 #4
0
        public LateBindingApi.VBIDE.VBComponent AddMTDesigner(Int32 index)
        {
            object[] paramArray = new object[1];
            paramArray[0] = index;
            object returnValue = Invoker.MethodReturn(this, "AddMTDesigner", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.VBIDE.VBComponent newClass = new LateBindingApi.VBIDE.VBComponent(this, returnValue);
            return(newClass);
        }
コード例 #5
0
        public LateBindingApi.VBIDE.VBComponent AddCustom(string progId)
        {
            object[] paramArray = new object[1];
            paramArray[0] = progId;
            object returnValue = Invoker.MethodReturn(this, "AddCustom", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.VBIDE.VBComponent newClass = new LateBindingApi.VBIDE.VBComponent(this, returnValue);
            return(newClass);
        }
コード例 #6
0
 public LateBindingApi.VBIDE.VBComponent 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.VBIDE.VBComponent newClass = new LateBindingApi.VBIDE.VBComponent(this, returnValue);
         return(newClass);
     }
 }
コード例 #7
0
        public IEnumerator GetEnumerator()
        {
            object    enumProxy  = Invoker.MethodReturn(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.VBIDE.VBComponent returnClass = new LateBindingApi.VBIDE.VBComponent(this, itemProxy);
                isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null);
                yield return(returnClass);
            }
        }
コード例 #8
0
 public void ItemReloaded(LateBindingApi.VBIDE.VBComponent vBComponent)
 {
     object[] paramArray = new object[1];
     paramArray.SetValue(vBComponent, 0);
     Invoker.Method(this, "ItemReloaded", paramArray);
 }
コード例 #9
0
 public void Remove(LateBindingApi.VBIDE.VBComponent vBComponent)
 {
     object[] paramArray = new object[1];
     paramArray.SetValue(vBComponent, 0);
     Invoker.Method(this, "Remove", paramArray);
 }