/// <summary> /// /// </summary> /// <param name="selection"></param> /// <param name="activeObject"></param> /// <param name="initialValue"></param> /// <param name="arrowMode"></param> /// <param name="caretPosition"></param> /// <param name="cancel"></param> /// <param name="errorDescription"></param> public void StartEdit([In, MarshalAs(UnmanagedType.IDispatch)] object selection, [In, MarshalAs(UnmanagedType.IDispatch)] object activeObject, [In, MarshalAs(UnmanagedType.IDispatch)] object initialValue, [In, MarshalAs(UnmanagedType.IDispatch)] object arrowMode, [In, MarshalAs(UnmanagedType.IDispatch)] object caretPosition, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object errorDescription) { if (!Validate("StartEdit")) { Invoker.ReleaseParamsArray(selection, activeObject, initialValue, arrowMode, caretPosition, cancel, errorDescription); return; } object newSelection = Factory.CreateEventArgumentObjectFromComProxy(EventClass, selection) as object; object newActiveObject = Factory.CreateEventArgumentObjectFromComProxy(EventClass, activeObject) as object; NetOffice.OWC10Api.ByRef newInitialValue = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, initialValue, typeof(NetOffice.OWC10Api.ByRef)); NetOffice.OWC10Api.ByRef newArrowMode = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, arrowMode, typeof(NetOffice.OWC10Api.ByRef)); NetOffice.OWC10Api.ByRef newCaretPosition = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, caretPosition, typeof(NetOffice.OWC10Api.ByRef)); NetOffice.OWC10Api.ByRef newCancel = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, cancel, typeof(NetOffice.OWC10Api.ByRef)); NetOffice.OWC10Api.ByRef newErrorDescription = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, errorDescription, typeof(NetOffice.OWC10Api.ByRef)); object[] paramsArray = new object[7]; paramsArray[0] = newSelection; paramsArray[1] = newActiveObject; paramsArray[2] = newInitialValue; paramsArray[3] = newArrowMode; paramsArray[4] = newCaretPosition; paramsArray[5] = newCancel; paramsArray[6] = newErrorDescription; EventBinding.RaiseCustomEvent("StartEdit", ref paramsArray); }
public void StartEdit([In, MarshalAs(UnmanagedType.IDispatch)] object selection, [In, MarshalAs(UnmanagedType.IDispatch)] object activeObject, [In, MarshalAs(UnmanagedType.IDispatch)] object initialValue, [In, MarshalAs(UnmanagedType.IDispatch)] object arrowMode, [In, MarshalAs(UnmanagedType.IDispatch)] object caretPosition, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object errorDescription) { Delegate[] recipients = _eventBinding.GetEventRecipients("StartEdit"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(selection, activeObject, initialValue, arrowMode, caretPosition, cancel, errorDescription); return; } object newSelection = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, selection) as object; object newActiveObject = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, activeObject) as object; NetOffice.OWC10Api.ByRef newInitialValue = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, initialValue) as NetOffice.OWC10Api.ByRef; NetOffice.OWC10Api.ByRef newArrowMode = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, arrowMode) as NetOffice.OWC10Api.ByRef; NetOffice.OWC10Api.ByRef newCaretPosition = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, caretPosition) as NetOffice.OWC10Api.ByRef; NetOffice.OWC10Api.ByRef newCancel = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, cancel) as NetOffice.OWC10Api.ByRef; NetOffice.OWC10Api.ByRef newErrorDescription = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, errorDescription) as NetOffice.OWC10Api.ByRef; object[] paramsArray = new object[7]; paramsArray[0] = newSelection; paramsArray[1] = newActiveObject; paramsArray[2] = newInitialValue; paramsArray[3] = newArrowMode; paramsArray[4] = newCaretPosition; paramsArray[5] = newCancel; paramsArray[6] = newErrorDescription; _eventBinding.RaiseCustomEvent("StartEdit", ref paramsArray); }
public void CommandBeforeExecute([In] object command, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel) { if (!Validate("CommandBeforeExecute")) { Invoker.ReleaseParamsArray(command, cancel); return; } object newCommand = (object)command; NetOffice.OWC10Api.ByRef newCancel = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, cancel, NetOffice.OWC10Api.ByRef.LateBindingApiWrapperType); object[] paramsArray = new object[2]; paramsArray[0] = newCommand; paramsArray[1] = newCancel; EventBinding.RaiseCustomEvent("CommandBeforeExecute", ref paramsArray); }
public void BeforeScreenTip([In, MarshalAs(UnmanagedType.IDispatch)] object tipText, [In, MarshalAs(UnmanagedType.IDispatch)] object contextObject) { if (!Validate("BeforeScreenTip")) { Invoker.ReleaseParamsArray(tipText, contextObject); return; } NetOffice.OWC10Api.ByRef newTipText = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, tipText, NetOffice.OWC10Api.ByRef.LateBindingApiWrapperType); object newContextObject = Factory.CreateEventArgumentObjectFromComProxy(EventClass, contextObject) as object; object[] paramsArray = new object[2]; paramsArray[0] = newTipText; paramsArray[1] = newContextObject; EventBinding.RaiseCustomEvent("BeforeScreenTip", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="screenTipText"></param> /// <param name="sourceObject"></param> public void BeforeScreenTip([In, MarshalAs(UnmanagedType.IDispatch)] object screenTipText, [In, MarshalAs(UnmanagedType.IDispatch)] object sourceObject) { if (!Validate("BeforeScreenTip")) { Invoker.ReleaseParamsArray(screenTipText, sourceObject); return; } NetOffice.OWC10Api.ByRef newScreenTipText = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, screenTipText, typeof(NetOffice.OWC10Api.ByRef)); object newSourceObject = Factory.CreateEventArgumentObjectFromComProxy(EventClass, sourceObject) as object; object[] paramsArray = new object[2]; paramsArray[0] = newScreenTipText; paramsArray[1] = newSourceObject; EventBinding.RaiseCustomEvent("BeforeScreenTip", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="command"></param> /// <param name="caption"></param> public void CommandTipText([In] object command, [In, MarshalAs(UnmanagedType.IDispatch)] object caption) { if (!Validate("CommandTipText")) { Invoker.ReleaseParamsArray(command, caption); return; } object newCommand = (object)command; NetOffice.OWC10Api.ByRef newCaption = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, command, typeof(NetOffice.OWC10Api.ByRef)); object[] paramsArray = new object[2]; paramsArray[0] = newCommand; paramsArray[1] = newCaption; EventBinding.RaiseCustomEvent("CommandTipText", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="keyAscii"></param> /// <param name="cancel"></param> public void BeforeKeyPress([In] object keyAscii, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel) { if (!Validate("BeforeKeyPress")) { Invoker.ReleaseParamsArray(keyAscii, cancel); return; } Int32 newKeyAscii = ToInt32(keyAscii); NetOffice.OWC10Api.ByRef newCancel = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, cancel, typeof(NetOffice.OWC10Api.ByRef)); object[] paramsArray = new object[2]; paramsArray[0] = newKeyAscii; paramsArray[1] = newCancel; EventBinding.RaiseCustomEvent("BeforeKeyPress", ref paramsArray); }
public void BeforeKeyPress([In] object keyAscii, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel) { Delegate[] recipients = _eventBinding.GetEventRecipients("BeforeKeyPress"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(keyAscii, cancel); return; } Int32 newKeyAscii = Convert.ToInt32(keyAscii); NetOffice.OWC10Api.ByRef newCancel = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, cancel) as NetOffice.OWC10Api.ByRef; object[] paramsArray = new object[2]; paramsArray[0] = newKeyAscii; paramsArray[1] = newCancel; _eventBinding.RaiseCustomEvent("BeforeKeyPress", ref paramsArray); }
public void BeforeScreenTip([In, MarshalAs(UnmanagedType.IDispatch)] object screenTipText, [In, MarshalAs(UnmanagedType.IDispatch)] object sourceObject) { Delegate[] recipients = _eventBinding.GetEventRecipients("BeforeScreenTip"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(screenTipText, sourceObject); return; } NetOffice.OWC10Api.ByRef newScreenTipText = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, screenTipText) as NetOffice.OWC10Api.ByRef; object newSourceObject = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, sourceObject) as object; object[] paramsArray = new object[2]; paramsArray[0] = newScreenTipText; paramsArray[1] = newSourceObject; _eventBinding.RaiseCustomEvent("BeforeScreenTip", ref paramsArray); }
public void CommandBeforeExecute([In] object command, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel) { Delegate[] recipients = _eventBinding.GetEventRecipients("CommandBeforeExecute"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(command, cancel); return; } object newCommand = (object)command; NetOffice.OWC10Api.ByRef newCancel = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, cancel) as NetOffice.OWC10Api.ByRef; object[] paramsArray = new object[2]; paramsArray[0] = newCommand; paramsArray[1] = newCancel; _eventBinding.RaiseCustomEvent("CommandBeforeExecute", 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); }
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 = Convert.ToInt32(keyCode); Int32 newShift = Convert.ToInt32(shift); NetOffice.OWC10Api.ByRef newCancel = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, cancel, NetOffice.OWC10Api.ByRef.LateBindingApiWrapperType); 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) { Delegate[] recipients = _eventBinding.GetEventRecipients("BeforeRender"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(drawObject, chartObject, cancel); return; } NetOffice.OWC10Api.ChChartDraw newdrawObject = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, drawObject) as NetOffice.OWC10Api.ChChartDraw; object newchartObject = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, chartObject) as object; NetOffice.OWC10Api.ByRef newCancel = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, cancel) as NetOffice.OWC10Api.ByRef; object[] paramsArray = new object[3]; paramsArray[0] = newdrawObject; paramsArray[1] = newchartObject; paramsArray[2] = newCancel; _eventBinding.RaiseCustomEvent("BeforeRender", ref paramsArray); }
public void StartEdit([In, MarshalAs(UnmanagedType.IDispatch)] object selection, [In, MarshalAs(UnmanagedType.IDispatch)] object initialValue, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object errorDescription) { if (!Validate("StartEdit")) { Invoker.ReleaseParamsArray(selection, initialValue, cancel, errorDescription); return; } object newSelection = Factory.CreateEventArgumentObjectFromComProxy(EventClass, selection) as object; NetOffice.OWC10Api.ByRef newInitialValue = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, initialValue, NetOffice.OWC10Api.ByRef.LateBindingApiWrapperType); NetOffice.OWC10Api.ByRef newCancel = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, cancel, NetOffice.OWC10Api.ByRef.LateBindingApiWrapperType); NetOffice.OWC10Api.ByRef newErrorDescription = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, errorDescription, NetOffice.OWC10Api.ByRef.LateBindingApiWrapperType); object[] paramsArray = new object[4]; paramsArray[0] = newSelection; paramsArray[1] = newInitialValue; paramsArray[2] = newCancel; paramsArray[3] = newErrorDescription; EventBinding.RaiseCustomEvent("StartEdit", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="accept"></param> /// <param name="finalValue"></param> /// <param name="cancel"></param> /// <param name="errorDescription"></param> public void EndEdit([In] object accept, [In, MarshalAs(UnmanagedType.IDispatch)] object finalValue, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object errorDescription) { if (!Validate("EndEdit")) { Invoker.ReleaseParamsArray(accept, finalValue, cancel, errorDescription); return; } bool newAccept = ToBoolean(accept); NetOffice.OWC10Api.ByRef newFinalValue = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, finalValue, typeof(NetOffice.OWC10Api.ByRef)); NetOffice.OWC10Api.ByRef newCancel = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, cancel, typeof(NetOffice.OWC10Api.ByRef)); NetOffice.OWC10Api.ByRef newErrorDescription = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, errorDescription, typeof(NetOffice.OWC10Api.ByRef)); object[] paramsArray = new object[4]; paramsArray[0] = newAccept; paramsArray[1] = newFinalValue; paramsArray[2] = newCancel; paramsArray[3] = newErrorDescription; EventBinding.RaiseCustomEvent("EndEdit", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <param name="menu"></param> /// <param name="cancel"></param> public void BeforeContextMenu([In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object menu, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel) { if (!Validate("BeforeContextMenu")) { Invoker.ReleaseParamsArray(x, y, menu, cancel); return; } Int32 newx = ToInt32(x); Int32 newy = ToInt32(y); NetOffice.OWC10Api.ByRef newMenu = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, menu, typeof(NetOffice.OWC10Api.ByRef)); NetOffice.OWC10Api.ByRef newCancel = Factory.CreateKnownObjectFromComProxy <NetOffice.OWC10Api.ByRef>(EventClass, cancel, typeof(NetOffice.OWC10Api.ByRef)); object[] paramsArray = new object[4]; paramsArray[0] = newx; paramsArray[1] = newy; paramsArray[2] = newMenu; paramsArray[3] = newCancel; EventBinding.RaiseCustomEvent("BeforeContextMenu", ref paramsArray); }
public void EndEdit([In] object accept, [In, MarshalAs(UnmanagedType.IDispatch)] object finalValue, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object errorDescription) { Delegate[] recipients = _eventBinding.GetEventRecipients("EndEdit"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(accept, finalValue, cancel, errorDescription); return; } bool newAccept = Convert.ToBoolean(accept); NetOffice.OWC10Api.ByRef newFinalValue = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, finalValue) as NetOffice.OWC10Api.ByRef; NetOffice.OWC10Api.ByRef newCancel = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, cancel) as NetOffice.OWC10Api.ByRef; NetOffice.OWC10Api.ByRef newErrorDescription = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, errorDescription) as NetOffice.OWC10Api.ByRef; object[] paramsArray = new object[4]; paramsArray[0] = newAccept; paramsArray[1] = newFinalValue; paramsArray[2] = newCancel; paramsArray[3] = newErrorDescription; _eventBinding.RaiseCustomEvent("EndEdit", ref paramsArray); }
public void BeforeContextMenu([In] object x, [In] object y, [In, MarshalAs(UnmanagedType.IDispatch)] object menu, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel) { Delegate[] recipients = _eventBinding.GetEventRecipients("BeforeContextMenu"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(x, y, menu, cancel); return; } Int32 newx = Convert.ToInt32(x); Int32 newy = Convert.ToInt32(y); NetOffice.OWC10Api.ByRef newMenu = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, menu) as NetOffice.OWC10Api.ByRef; NetOffice.OWC10Api.ByRef newCancel = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, cancel) as NetOffice.OWC10Api.ByRef; object[] paramsArray = new object[4]; paramsArray[0] = newx; paramsArray[1] = newy; paramsArray[2] = newMenu; paramsArray[3] = newCancel; _eventBinding.RaiseCustomEvent("BeforeContextMenu", ref paramsArray); }