예제 #1
0
        public Int32 AfterXmlImport(NetOffice.ExcelApi.XmlMap map, bool isRefresh, NetOffice.ExcelApi.Enums.XlXmlImportResult result)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(map, isRefresh, result);
            object   returnItem  = Invoker.MethodReturn(this, "AfterXmlImport", paramsArray);

            return(NetRuntimeSystem.Convert.ToInt32(returnItem));
        }
예제 #2
0
        public void AfterXmlImport([In, MarshalAs(UnmanagedType.IDispatch)] object map, [In] object isRefresh, [In] object result)
        {
            if (!Validate("AfterXmlImport"))
            {
                Invoker.ReleaseParamsArray(map, isRefresh, result);
                return;
            }

            NetOffice.ExcelApi.XmlMap newMap = Factory.CreateKnownObjectFromComProxy <NetOffice.ExcelApi.XmlMap>(EventClass, map, NetOffice.ExcelApi.XmlMap.LateBindingApiWrapperType);
            bool newIsRefresh = ToBoolean(isRefresh);

            NetOffice.ExcelApi.Enums.XlXmlImportResult newResult = (NetOffice.ExcelApi.Enums.XlXmlImportResult)result;
            object[] paramsArray = new object[3];
            paramsArray[0] = newMap;
            paramsArray[1] = newIsRefresh;
            paramsArray[2] = newResult;
            EventBinding.RaiseCustomEvent("AfterXmlImport", ref paramsArray);
        }
예제 #3
0
        public void AfterXmlImport([In, MarshalAs(UnmanagedType.IDispatch)] object map, [In] object isRefresh, [In] object result)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("AfterXmlImport");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(map, isRefresh, result);
                return;
            }

            NetOffice.ExcelApi.XmlMap newMap = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, map) as NetOffice.ExcelApi.XmlMap;
            bool newIsRefresh = Convert.ToBoolean(isRefresh);

            NetOffice.ExcelApi.Enums.XlXmlImportResult newResult = (NetOffice.ExcelApi.Enums.XlXmlImportResult)result;
            object[] paramsArray = new object[3];
            paramsArray[0] = newMap;
            paramsArray[1] = newIsRefresh;
            paramsArray[2] = newResult;
            _eventBinding.RaiseCustomEvent("AfterXmlImport", ref paramsArray);
        }
예제 #4
0
 public Int32 AfterXmlImport(NetOffice.ExcelApi.XmlMap map, bool isRefresh, NetOffice.ExcelApi.Enums.XlXmlImportResult result)
 {
     return(Factory.ExecuteInt32MethodGet(this, "AfterXmlImport", map, isRefresh, result));
 }
예제 #5
0
 public virtual Int32 WorkbookAfterXmlImport(NetOffice.ExcelApi.Workbook wb, NetOffice.ExcelApi.XmlMap map, bool isRefresh, NetOffice.ExcelApi.Enums.XlXmlImportResult result)
 {
     return(InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "WorkbookAfterXmlImport", wb, map, isRefresh, result));
 }