コード例 #1
0
 public void SetValue(LateBindingApi.Excel.XmlMap map, string xPath)
 {
     object[] paramArray = new object[2];
     paramArray.SetValue(map, 0);
     paramArray[1] = xPath;
     Invoker.Method(this, "SetValue", paramArray);
 }
コード例 #2
0
 public void SetValue(LateBindingApi.Excel.XmlMap map, string xPath, object selectionNamespace, object repeating)
 {
     object[] paramArray = new object[4];
     paramArray.SetValue(map, 0);
     paramArray[1] = xPath;
     paramArray[2] = selectionNamespace;
     paramArray[3] = repeating;
     Invoker.Method(this, "SetValue", paramArray);
 }
コード例 #3
0
        public LateBindingApi.Excel.XmlMap 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.XmlMap newClass = new LateBindingApi.Excel.XmlMap(this, returnValue);
            return(newClass);
        }
コード例 #4
0
        public LateBindingApi.Excel.XmlMap Add(string schema)
        {
            object[] paramArray = new object[1];
            paramArray[0] = schema;
            object returnValue = Invoker.MethodReturn(this, "Add", paramArray);

            if (null == returnValue)
            {
                return(null);
            }
            LateBindingApi.Excel.XmlMap newClass = new LateBindingApi.Excel.XmlMap(this, returnValue);
            return(newClass);
        }
コード例 #5
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.XmlMap returnClass = new LateBindingApi.Excel.XmlMap(this, itemProxy);
                isMoveNextTrue = (bool)Invoker.MethodReturn(enumerator, "MoveNext", null);
                yield return(returnClass);
            }
        }
コード例 #6
0
        public void AfterXmlExport([In, MarshalAs(UnmanagedType.Interface)] object map, [In] string url, [In] LateBindingApi.Excel.Enums.XlXmlExportResult result)
        {
            if (true == _eventClass.IsDisposed)
            {
                Marshal.ReleaseComObject(map);
                return;
            }

            object[] paramArray = new object[3];
            paramArray[0] = new LateBindingApi.Excel.XmlMap(_eventClass, map);
            paramArray[1] = url;
            paramArray[2] = result;
            bool isRecieved = _eventBinding.CallEvent("AfterXmlExportEvent", paramArray);

            if (false == isRecieved)
            {
                Invoker.ReleaseParamArray(paramArray);
            }
        }
コード例 #7
0
        public void BeforeXmlExport([In, MarshalAs(UnmanagedType.Interface)] object map, [In] string url, [In] ref bool cancel)
        {
            if (true == _eventClass.IsDisposed)
            {
                Marshal.ReleaseComObject(map);
                return;
            }

            object[] paramArray = new object[3];
            paramArray[0] = new LateBindingApi.Excel.XmlMap(_eventClass, map);
            paramArray[1] = url;
            paramArray.SetValue(cancel, 2);
            bool isRecieved = _eventBinding.CallEvent("BeforeXmlExportEvent", paramArray);

            if (false == isRecieved)
            {
                Invoker.ReleaseParamArray(paramArray);
            }
        }