Exemplo n.º 1
0
        public LateBindingApi.Office.SmartArtNode Add()
        {
            object returnValue = Invoker.MethodReturn(this, "Add", null);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Office.SmartArtNode newClass = new LateBindingApi.Office.SmartArtNode(this, returnValue);
            return(newClass);
        }
        public LateBindingApi.Office.SmartArtNode AddNode(LateBindingApi.Office.Enums.MsoSmartArtNodePosition position, LateBindingApi.Office.Enums.MsoSmartArtNodeType type)
        {
            object[] paramArray = new object[2];
            paramArray[0] = position;
            paramArray[1] = type;
            object returnValue = Invoker.MethodReturn(this, "AddNode", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Office.SmartArtNode newClass = new LateBindingApi.Office.SmartArtNode(this, returnValue);
            return(newClass);
        }
Exemplo n.º 3
0
 public LateBindingApi.Office.SmartArtNode 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.Office.SmartArtNode newClass = new LateBindingApi.Office.SmartArtNode(this, returnValue);
         return(newClass);
     }
 }
Exemplo n.º 4
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.Office.SmartArtNode returnClass = new LateBindingApi.Office.SmartArtNode(this, itemProxy);
                isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null);
                yield return(returnClass);
            }
        }