/// <summary> /// /// </summary> /// <param name="cancel"></param> /// <param name="data"></param> /// <param name="x"></param> /// <param name="y"></param> /// <param name="dragState"></param> /// <param name="effect"></param> /// <param name="shift"></param> public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object dragState, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) { if (!Validate("BeforeDragOver")) { Invoker.ReleaseParamsArray(cancel, data, x, y, dragState, effect, shift); return; } NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy <NetOffice.MSFormsApi.ReturnBoolean>(EventClass, cancel, typeof(NetOffice.MSFormsApi.ReturnBoolean)); NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy <NetOffice.MSFormsApi.DataObject>(EventClass, data, typeof(NetOffice.MSFormsApi.DataObject)); Single newX = ToSingle(x); Single newY = ToSingle(y); NetOffice.MSFormsApi.Enums.fmDragState newDragState = (NetOffice.MSFormsApi.Enums.fmDragState)dragState; NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy <NetOffice.MSFormsApi.ReturnEffect>(EventClass, effect, typeof(NetOffice.MSFormsApi.ReturnEffect)); Int16 newShift = ToInt16(shift); object[] paramsArray = new object[7]; paramsArray[0] = newCancel; paramsArray[1] = newData; paramsArray[2] = newX; paramsArray[3] = newY; paramsArray[4] = newDragState; paramsArray[5] = newEffect; paramsArray[6] = newShift; EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); }
public void BeforeDragOver([In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object state, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) { Delegate[] recipients = _eventBinding.GetEventRecipients("BeforeDragOver"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(cancel, control, data, x, y, state, effect, shift); return; } NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateObjectFromComProxy(_eventClass, cancel) as NetOffice.MSFormsApi.ReturnBoolean; NetOffice.MSFormsApi.Control newControl = Factory.CreateObjectFromComProxy(_eventClass, control) as NetOffice.MSFormsApi.Control; NetOffice.MSFormsApi.DataObject newData = Factory.CreateObjectFromComProxy(_eventClass, data) as NetOffice.MSFormsApi.DataObject; Single newX = Convert.ToSingle(x); Single newY = Convert.ToSingle(y); NetOffice.MSFormsApi.Enums.fmDragState newState = (NetOffice.MSFormsApi.Enums.fmDragState)state; NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateObjectFromComProxy(_eventClass, effect) as NetOffice.MSFormsApi.ReturnEffect; Int16 newShift = Convert.ToInt16(shift); object[] paramsArray = new object[8]; paramsArray[0] = newCancel; paramsArray[1] = newControl; paramsArray[2] = newData; paramsArray[3] = newX; paramsArray[4] = newY; paramsArray[5] = newState; paramsArray[6] = newEffect; paramsArray[7] = newShift; _eventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); }
public void BeforeDragOver([In] object index, [In, MarshalAs(UnmanagedType.IDispatch)] object cancel, [In, MarshalAs(UnmanagedType.IDispatch)] object control, [In, MarshalAs(UnmanagedType.IDispatch)] object data, [In] object x, [In] object y, [In] object state, [In, MarshalAs(UnmanagedType.IDispatch)] object effect, [In] object shift) { if (!Validate("BeforeDragOver")) { Invoker.ReleaseParamsArray(index, cancel, control, data, x, y, state, effect, shift); return; } Int32 newIndex = Convert.ToInt32(index); NetOffice.MSFormsApi.ReturnBoolean newCancel = Factory.CreateKnownObjectFromComProxy <NetOffice.MSFormsApi.ReturnBoolean>(EventClass, cancel, NetOffice.MSFormsApi.ReturnBoolean.LateBindingApiWrapperType); NetOffice.MSFormsApi.Control newControl = Factory.CreateKnownObjectFromComProxy <NetOffice.MSFormsApi.Control>(EventClass, control, NetOffice.MSFormsApi.Control.LateBindingApiWrapperType); NetOffice.MSFormsApi.DataObject newData = Factory.CreateKnownObjectFromComProxy <NetOffice.MSFormsApi.DataObject>(EventClass, data, NetOffice.MSFormsApi.DataObject.LateBindingApiWrapperType); Single newX = ToSingle(x); Single newY = ToSingle(y); NetOffice.MSFormsApi.Enums.fmDragState newState = (NetOffice.MSFormsApi.Enums.fmDragState)state; NetOffice.MSFormsApi.ReturnEffect newEffect = Factory.CreateKnownObjectFromComProxy <NetOffice.MSFormsApi.ReturnEffect>(EventClass, effect, NetOffice.MSFormsApi.ReturnEffect.LateBindingApiWrapperType); Int16 newShift = ToInt16(shift); object[] paramsArray = new object[9]; paramsArray[0] = newIndex; paramsArray[1] = newCancel; paramsArray[2] = newControl; paramsArray[3] = newData; paramsArray[4] = newX; paramsArray[5] = newY; paramsArray[6] = newState; paramsArray[7] = newEffect; paramsArray[8] = newShift; EventBinding.RaiseCustomEvent("BeforeDragOver", ref paramsArray); }