public void KeyDown([In, MarshalAs(UnmanagedType.IDispatch)] object keyCode, [In] object shift) { if (!Validate("Error")) { Invoker.ReleaseParamsArray(keyCode, shift); return; return; } NetOffice.MSFormsApi.ReturnInteger newKeyCode = Factory.CreateKnownObjectFromComProxy <NetOffice.MSFormsApi.ReturnInteger>(EventClass, keyCode, NetOffice.MSFormsApi.ReturnInteger.LateBindingApiWrapperType); Int16 newShift = ToInt16(shift); object[] paramsArray = new object[2]; paramsArray[0] = newKeyCode; paramsArray[1] = newShift; EventBinding.RaiseCustomEvent("KeyDown", ref paramsArray); }
public void ConnectComplete([In, MarshalAs(UnmanagedType.IDispatch)] object pError, [In] object adStatus, [In, MarshalAs(UnmanagedType.IDispatch)] object pConnection) { if (!Validate("ConnectComplete")) { Invoker.ReleaseParamsArray(pError, adStatus, pConnection); return; } NetOffice.ADODBApi.Error newpError = Factory.CreateKnownObjectFromComProxy <NetOffice.ADODBApi.Error>(EventClass, pError, NetOffice.ADODBApi.Error.LateBindingApiWrapperType); NetOffice.ADODBApi.Enums.EventStatusEnum newadStatus = (NetOffice.ADODBApi.Enums.EventStatusEnum)adStatus; NetOffice.ADODBApi._Connection newpConnection = Factory.CreateEventArgumentObjectFromComProxy(EventClass, pConnection) as NetOffice.ADODBApi._Connection; object[] paramsArray = new object[3]; paramsArray[0] = newpError; paramsArray[1] = newadStatus; paramsArray[2] = newpConnection; EventBinding.RaiseCustomEvent("ConnectComplete", ref paramsArray); }
public void NodeAfterReplace([In, MarshalAs(UnmanagedType.IDispatch)] object oldNode, [In, MarshalAs(UnmanagedType.IDispatch)] object newNode, [In] object inUndoRedo) { if (!Validate("NodeAfterReplace")) { Invoker.ReleaseParamsArray(oldNode, newNode, inUndoRedo); return; } NetOffice.OfficeApi.CustomXMLNode newOldNode = Factory.CreateKnownObjectFromComProxy <NetOffice.OfficeApi.CustomXMLNode>(EventClass, oldNode, NetOffice.OfficeApi.CustomXMLNode.LateBindingApiWrapperType); NetOffice.OfficeApi.CustomXMLNode newNewNode = Factory.CreateKnownObjectFromComProxy <NetOffice.OfficeApi.CustomXMLNode>(EventClass, newNode, NetOffice.OfficeApi.CustomXMLNode.LateBindingApiWrapperType); bool newInUndoRedo = ToBoolean(inUndoRedo); object[] paramsArray = new object[3]; paramsArray[0] = newOldNode; paramsArray[1] = newNewNode; paramsArray[2] = newInUndoRedo; EventBinding.RaiseCustomEvent("NodeAfterReplace", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="item"></param> /// <param name="cancel"></param> public void ItemSend([In, MarshalAs(UnmanagedType.IDispatch)] object item, [In][Out] ref object cancel) { if (!Validate("ItemSend")) { Invoker.ReleaseParamsArray(item, cancel); return; } object newItem = Factory.CreateEventArgumentObjectFromComProxy(EventClass, item) as object; object[] paramsArray = new object[2]; paramsArray[0] = newItem; paramsArray.SetValue(cancel, 1); EventBinding.RaiseCustomEvent("ItemSend", ref paramsArray); cancel = ToBoolean(paramsArray[1]); }
/// <summary> /// /// </summary> /// <param name="adReason"></param> /// <param name="adStatus"></param> /// <param name="pRecordset"></param> public virtual void WillMove([In] object adReason, [In] object adStatus, [In, MarshalAs(UnmanagedType.IDispatch)] object pRecordset) { if (!Validate("WillMove")) { Invoker.ReleaseParamsArray(adReason, adStatus, pRecordset); return; } NetOffice.ADODBApi.Enums.EventReasonEnum newadReason = (NetOffice.ADODBApi.Enums.EventReasonEnum)adReason; NetOffice.ADODBApi.Enums.EventStatusEnum newadStatus = (NetOffice.ADODBApi.Enums.EventStatusEnum)adStatus; NetOffice.ADODBApi._Recordset newpRecordset = Factory.CreateEventArgumentObjectFromComProxy(EventClass, pRecordset) as NetOffice.ADODBApi._Recordset; object[] paramsArray = new object[3]; paramsArray[0] = newadReason; paramsArray[1] = newadStatus; paramsArray[2] = newpRecordset; EventBinding.RaiseCustomEvent("WillMove", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="newView"></param> /// <param name="cancel"></param> public void BeforeViewSwitch([In] object newView, [In][Out] ref object cancel) { if (!Validate("BeforeViewSwitch")) { Invoker.ReleaseParamsArray(newView, cancel); return; } object newNewView = (object)newView; object[] paramsArray = new object[2]; paramsArray[0] = newNewView; paramsArray.SetValue(cancel, 1); EventBinding.RaiseCustomEvent("BeforeViewSwitch", ref paramsArray); cancel = ToBoolean(paramsArray[1]); }
/// <summary> /// /// </summary> /// <param name="newFolder"></param> /// <param name="cancel"></param> public void BeforeFolderSwitch([In, MarshalAs(UnmanagedType.IDispatch)] object newFolder, [In][Out] ref object cancel) { if (!Validate("BeforeFolderSwitch")) { Invoker.ReleaseParamsArray(newFolder, cancel); return; } object newNewFolder = Factory.CreateEventArgumentObjectFromComProxy(EventClass, newFolder) as object; object[] paramsArray = new object[2]; paramsArray[0] = newNewFolder; paramsArray.SetValue(cancel, 1); EventBinding.RaiseCustomEvent("BeforeFolderSwitch", ref paramsArray); cancel = ToBoolean(paramsArray[1]); }
public void KeyUp([In][Out] ref object keyCode, [In] object shift) { if (!Validate("KeyUp")) { Invoker.ReleaseParamsArray(keyCode, shift); return; } Int16 newShift = ToInt16(shift); object[] paramsArray = new object[2]; paramsArray.SetValue(keyCode, 0); paramsArray[1] = newShift; EventBinding.RaiseCustomEvent("KeyUp", ref paramsArray); keyCode = ToInt16(paramsArray[0]); }
public void KeyPress([In] object keyAscii, [In][Out] ref object cancelDefault) { if (!Validate("KeyPress")) { Invoker.ReleaseParamsArray(keyAscii, cancelDefault); return; } Int32 newKeyAscii = ToInt32(keyAscii); object[] paramsArray = new object[2]; paramsArray[0] = newKeyAscii; paramsArray.SetValue(cancelDefault, 1); EventBinding.RaiseCustomEvent("KeyPress", ref paramsArray); cancelDefault = ToBoolean(paramsArray[1]); }
/// <summary> /// /// </summary> /// <param name="index"></param> /// <param name="percent"></param> public void Zoom([In] object index, [In][Out] ref object percent) { if (!Validate("Zoom")) { Invoker.ReleaseParamsArray(index, percent); return; } Int32 newIndex = ToInt32(index); object[] paramsArray = new object[2]; paramsArray[0] = newIndex; paramsArray.SetValue(percent, 1); EventBinding.RaiseCustomEvent("Zoom", ref paramsArray); percent = ToInt32(paramsArray[1]); }
public void ReplyAll([In, MarshalAs(UnmanagedType.IDispatch)] object response, [In][Out] ref object cancel) { if (!Validate("ReplyAll")) { Invoker.ReleaseParamsArray(response, cancel); return; } object newResponse = Factory.CreateEventArgumentObjectFromComProxy(EventClass, response) as object; object[] paramsArray = new object[2]; paramsArray[0] = newResponse; paramsArray.SetValue(cancel, 1); EventBinding.RaiseCustomEvent("ReplyAll", ref paramsArray); cancel = ToBoolean(paramsArray[1]); }
/// <summary> /// /// </summary> /// <param name="pError"></param> /// <param name="adStatus"></param> /// <param name="pRecordset"></param> public virtual void FetchComplete([In, MarshalAs(UnmanagedType.IDispatch)] object pError, [In] object adStatus, [In, MarshalAs(UnmanagedType.IDispatch)] object pRecordset) { if (!Validate("FetchComplete")) { Invoker.ReleaseParamsArray(pError, adStatus, pRecordset); return; } NetOffice.ADODBApi.Error newpError = Factory.CreateKnownObjectFromComProxy <NetOffice.ADODBApi.Error>(EventClass, pError, typeof(NetOffice.ADODBApi.Error)); NetOffice.ADODBApi.Enums.EventStatusEnum newadStatus = (NetOffice.ADODBApi.Enums.EventStatusEnum)adStatus; NetOffice.ADODBApi._Recordset newpRecordset = Factory.CreateEventArgumentObjectFromComProxy(EventClass, pRecordset) as NetOffice.ADODBApi._Recordset; object[] paramsArray = new object[3]; paramsArray[0] = newpError; paramsArray[1] = newadStatus; paramsArray[2] = newpRecordset; EventBinding.RaiseCustomEvent("FetchComplete", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="saveAsUI"></param> /// <param name="cancel"></param> public void BeforeSave([In] object saveAsUI, [In][Out] ref object cancel) { if (!Validate("BeforeSave")) { Invoker.ReleaseParamsArray(saveAsUI, cancel); return; } bool newSaveAsUI = ToBoolean(saveAsUI); object[] paramsArray = new object[2]; paramsArray[0] = newSaveAsUI; paramsArray.SetValue(cancel, 1); EventBinding.RaiseCustomEvent("BeforeSave", ref paramsArray); cancel = ToBoolean(paramsArray[1]); }
/// <summary> /// /// </summary> /// <param name="pDisp"></param> /// <param name="uRL"></param> public void DocumentComplete([In, MarshalAs(UnmanagedType.IDispatch)] object pDisp, [In][Out] ref object uRL) { if (!Validate("DocumentComplete")) { Invoker.ReleaseParamsArray(pDisp, uRL); return; } object newpDisp = Factory.CreateEventArgumentObjectFromComProxy(EventClass, pDisp) as object; object[] paramsArray = new object[2]; paramsArray[0] = newpDisp; paramsArray.SetValue(uRL, 1); EventBinding.RaiseCustomEvent("DocumentComplete", ref paramsArray); uRL = (object)paramsArray[1]; }
/// <summary> /// /// </summary> public void Paint() { if (!Validate("Paint")) { return; } Delegate[] recipients = EventBinding.GetEventRecipients("Paint"); if ((true == EventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(); return; } object[] paramsArray = new object[0]; EventBinding.RaiseCustomEvent("Paint", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="description"></param> /// <param name="url"></param> /// <param name="line"></param> public void onerror([In] object description, [In] object url, [In] object line) { if (!Validate("onerror")) { Invoker.ReleaseParamsArray(description, url, line); return; } string newdescription = ToString(description); string newurl = ToString(url); Int32 newline = ToInt32(line); object[] paramsArray = new object[3]; paramsArray[0] = newdescription; paramsArray[1] = newurl; paramsArray[2] = newline; EventBinding.RaiseCustomEvent("onerror", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="shape"></param> /// <param name="dataRecordsetID"></param> /// <param name="dataRowID"></param> public void ShapeLinkDeleted([In, MarshalAs(UnmanagedType.IDispatch)] object shape, [In] object dataRecordsetID, [In] object dataRowID) { if (!Validate("ShapeLinkDeleted")) { Invoker.ReleaseParamsArray(shape, dataRecordsetID, dataRowID); return; } NetOffice.VisioApi.IVShape newShape = Factory.CreateEventArgumentObjectFromComProxy(EventClass, shape) as NetOffice.VisioApi.IVShape; Int32 newDataRecordsetID = ToInt32(dataRecordsetID); Int32 newDataRowID = ToInt32(dataRowID); object[] paramsArray = new object[3]; paramsArray[0] = newShape; paramsArray[1] = newDataRecordsetID; paramsArray[2] = newDataRowID; EventBinding.RaiseCustomEvent("ShapeLinkDeleted", ref paramsArray); }
public void SheetPivotTableAfterValueChange([In, MarshalAs(UnmanagedType.IDispatch)] object sh, [In, MarshalAs(UnmanagedType.IDispatch)] object targetPivotTable, [In, MarshalAs(UnmanagedType.IDispatch)] object targetRange) { if (!Validate("SheetPivotTableAfterValueChange")) { Invoker.ReleaseParamsArray(sh, targetPivotTable, targetRange); return; } object newSh = Factory.CreateEventArgumentObjectFromComProxy(EventClass, sh) as object; NetOffice.ExcelApi.PivotTable newTargetPivotTable = Factory.CreateKnownObjectFromComProxy <NetOffice.ExcelApi.PivotTable>(EventClass, targetPivotTable, NetOffice.ExcelApi.PivotTable.LateBindingApiWrapperType); NetOffice.ExcelApi.Range newTargetRange = Factory.CreateKnownObjectFromComProxy <NetOffice.ExcelApi.Range>(EventClass, targetRange, NetOffice.ExcelApi.Range.LateBindingApiWrapperType); object[] paramsArray = new object[3]; paramsArray[0] = newSh; paramsArray[1] = newTargetPivotTable; paramsArray[2] = newTargetRange; EventBinding.RaiseCustomEvent("SheetPivotTableAfterValueChange", ref paramsArray); }
public void RowsetComplete([In] object description, [In] object sheet, [In] object success) { if (!Validate("RowsetComplete")) { Invoker.ReleaseParamsArray(description, sheet, success); return; } string newDescription = ToString(description); string newSheet = ToString(sheet); bool newSuccess = ToBoolean(success); object[] paramsArray = new object[3]; paramsArray[0] = newDescription; paramsArray[1] = newSheet; paramsArray[2] = newSuccess; EventBinding.RaiseCustomEvent("RowsetComplete", ref paramsArray); }
public void AfterXmlExport([In, MarshalAs(UnmanagedType.IDispatch)] object map, [In] object url, [In] object result) { if (!Validate("AfterXmlExport")) { Invoker.ReleaseParamsArray(map, url, result); return; } NetOffice.ExcelApi.XmlMap newMap = Factory.CreateKnownObjectFromComProxy <NetOffice.ExcelApi.XmlMap>(EventClass, map, NetOffice.ExcelApi.XmlMap.LateBindingApiWrapperType); string newUrl = ToString(url); NetOffice.ExcelApi.Enums.XlXmlExportResult newResult = (NetOffice.ExcelApi.Enums.XlXmlExportResult)result; object[] paramsArray = new object[3]; paramsArray[0] = newMap; paramsArray[1] = newUrl; paramsArray[2] = newResult; EventBinding.RaiseCustomEvent("AfterXmlExport", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="connection"></param> public void RollbackTransaction([In][Out, MarshalAs(UnmanagedType.IDispatch)] object connection) { if (!Validate("RollbackTransaction")) { Invoker.ReleaseParamsArray(connection); return; } NetOffice.ADODBApi.Connection newConnection = Factory.CreateKnownObjectFromComProxy <NetOffice.ADODBApi.Connection>(EventClass, connection, typeof(NetOffice.ADODBApi.Connection)); (newConnection as ICOMProxyShareProvider).GetProxyShare().Acquire(); object[] paramsArray = new object[1]; paramsArray.SetValue(connection, 0); EventBinding.RaiseCustomEvent("RollbackTransaction", ref paramsArray); connection = newConnection.UnderlyingObject; (newConnection as ICOMProxyShareProvider).GetProxyShare().Release(); }
public void EndOfRecordset([In][Out] ref object fMoreData, [In] object adStatus, [In, MarshalAs(UnmanagedType.IDispatch)] object pRecordset) { if (!Validate("EndOfRecordset")) { Invoker.ReleaseParamsArray(fMoreData, adStatus, pRecordset); return; } NetOffice.ADODBApi.Enums.EventStatusEnum newadStatus = (NetOffice.ADODBApi.Enums.EventStatusEnum)adStatus; NetOffice.ADODBApi._Recordset newpRecordset = Factory.CreateEventArgumentObjectFromComProxy(EventClass, pRecordset) as NetOffice.ADODBApi._Recordset; object[] paramsArray = new object[3]; paramsArray.SetValue(fMoreData, 0); paramsArray[1] = newadStatus; paramsArray[2] = newpRecordset; EventBinding.RaiseCustomEvent("EndOfRecordset", ref paramsArray); fMoreData = ToBoolean(paramsArray[0]); }
/// <summary> /// /// </summary> /// <param name="sld"></param> /// <param name="x"></param> /// <param name="y"></param> public void AfterDragDropOnSlide([In, MarshalAs(UnmanagedType.IDispatch)] object sld, [In] object x, [In] object y) { if (!Validate("AfterDragDropOnSlide")) { Invoker.ReleaseParamsArray(sld, x, y); return; } NetOffice.PowerPointApi.Slide newSld = Factory.CreateKnownObjectFromComProxy <NetOffice.PowerPointApi.Slide>(EventClass, sld, typeof(NetOffice.PowerPointApi.Slide)); Single newX = ToSingle(x); Single newY = ToSingle(y); object[] paramsArray = new object[3]; paramsArray[0] = newSld; paramsArray[1] = newX; paramsArray[2] = newY; EventBinding.RaiseCustomEvent("AfterDragDropOnSlide", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="protViewWindow"></param> /// <param name="protectedViewCloseReason"></param> /// <param name="cancel"></param> public void ProtectedViewWindowBeforeClose([In, MarshalAs(UnmanagedType.IDispatch)] object protViewWindow, [In] object protectedViewCloseReason, [In][Out] ref object cancel) { if (!Validate("ProtectedViewWindowBeforeClose")) { Invoker.ReleaseParamsArray(protViewWindow, protectedViewCloseReason, cancel); return; } NetOffice.PowerPointApi.ProtectedViewWindow newProtViewWindow = Factory.CreateKnownObjectFromComProxy <NetOffice.PowerPointApi.ProtectedViewWindow>(EventClass, protViewWindow, typeof(NetOffice.PowerPointApi.ProtectedViewWindow)); NetOffice.PowerPointApi.Enums.PpProtectedViewCloseReason newProtectedViewCloseReason = (NetOffice.PowerPointApi.Enums.PpProtectedViewCloseReason)protectedViewCloseReason; object[] paramsArray = new object[3]; paramsArray[0] = newProtViewWindow; paramsArray[1] = newProtectedViewCloseReason; paramsArray.SetValue(cancel, 2); EventBinding.RaiseCustomEvent("ProtectedViewWindowBeforeClose", ref paramsArray); cancel = ToBoolean(paramsArray[2]); }
/// <summary> /// /// </summary> /// <param name="drawObject"></param> /// <param name="chartObject"></param> /// <param name="cancel"></param> public void BeforeRender([In, MarshalAs(UnmanagedType.IDispatch)] object drawObject, [In, MarshalAs(UnmanagedType.IDispatch)] object chartObject, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel) { if (!Validate("BeforeRender")) { Invoker.ReleaseParamsArray(drawObject, chartObject, cancel); return; } object newdrawObject = Factory.CreateEventArgumentObjectFromComProxy(EventClass, drawObject) as object; object newchartObject = Factory.CreateEventArgumentObjectFromComProxy(EventClass, chartObject) as object; object newCancel = Factory.CreateEventArgumentObjectFromComProxy(EventClass, cancel) as object; object[] paramsArray = new object[3]; paramsArray[0] = newdrawObject; paramsArray[1] = newchartObject; paramsArray[2] = newCancel; EventBinding.RaiseCustomEvent("BeforeRender", ref paramsArray); }
public void DocumentBeforeSave([In, MarshalAs(UnmanagedType.IDispatch)] object doc, [In][Out] ref object saveAsUI, [In][Out] ref object cancel) { if (!Validate("DocumentBeforeSave")) { Invoker.ReleaseParamsArray(doc, saveAsUI, cancel); return; } NetOffice.WordApi.Document newDoc = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.Document>(EventClass, doc, NetOffice.WordApi.Document.LateBindingApiWrapperType); object[] paramsArray = new object[3]; paramsArray[0] = newDoc; paramsArray.SetValue(saveAsUI, 1); paramsArray.SetValue(cancel, 2); EventBinding.RaiseCustomEvent("DocumentBeforeSave", ref paramsArray); saveAsUI = ToBoolean(paramsArray[1]); cancel = ToBoolean(paramsArray[2]); }
/// <summary> /// /// </summary> /// <param name="clipboardContent"></param> /// <param name="target"></param> /// <param name="cancel"></param> public void BeforeItemPaste([In][Out] ref object clipboardContent, [In, MarshalAs(UnmanagedType.IDispatch)] object target, [In][Out] ref object cancel) { if (!Validate("BeforeItemPaste")) { Invoker.ReleaseParamsArray(clipboardContent, target, cancel); return; } NetOffice.OutlookApi.MAPIFolder newTarget = Factory.CreateEventArgumentObjectFromComProxy(EventClass, target) as NetOffice.OutlookApi.MAPIFolder; object[] paramsArray = new object[3]; paramsArray.SetValue(clipboardContent, 0); paramsArray[1] = newTarget; paramsArray.SetValue(cancel, 2); EventBinding.RaiseCustomEvent("BeforeItemPaste", ref paramsArray); clipboardContent = (object)paramsArray[0]; cancel = ToBoolean(paramsArray[2]); }
/// <summary> /// /// </summary> /// <param name="map"></param> /// <param name="isRefresh"></param> /// <param name="result"></param> 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, typeof(NetOffice.ExcelApi.XmlMap)); 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); }
/// <summary> /// /// </summary> /// <param name="keyCode"></param> /// <param name="shift"></param> /// <param name="cancel"></param> public void BeforeKeyUp([In] object keyCode, [In] object shift, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel) { if (!Validate("BeforeKeyUp")) { Invoker.ReleaseParamsArray(keyCode, shift, cancel); return; } Int32 newKeyCode = ToInt32(keyCode); Int32 newShift = ToInt32(shift); NetOffice.OWC10Api.ByRef newCancel = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, cancel, typeof(NetOffice.OWC10Api.ByRef)); object[] paramsArray = new object[3]; paramsArray[0] = newKeyCode; paramsArray[1] = newShift; paramsArray[2] = newCancel; EventBinding.RaiseCustomEvent("BeforeKeyUp", ref paramsArray); }
public void BeforeRender([In, MarshalAs(UnmanagedType.IDispatch)] object drawObject, [In, MarshalAs(UnmanagedType.IDispatch)] object chartObject, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel) { if (!Validate("BeforeRender")) { Invoker.ReleaseParamsArray(drawObject, chartObject, cancel); return; } NetOffice.OWC10Api.ChChartDraw newdrawObject = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ChChartDraw>(EventClass, drawObject, NetOffice.OWC10Api.ChChartDraw.LateBindingApiWrapperType); object newchartObject = Factory.CreateEventArgumentObjectFromComProxy(EventClass, chartObject) as object; NetOffice.OWC10Api.ByRef newCancel = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, cancel, NetOffice.OWC10Api.ByRef.LateBindingApiWrapperType); object[] paramsArray = new object[3]; paramsArray[0] = newdrawObject; paramsArray[1] = newchartObject; paramsArray[2] = newCancel; EventBinding.RaiseCustomEvent("BeforeRender", ref paramsArray); }