/// <summary> /// /// </summary> /// <param name="sel"></param> public void WindowSelectionChange([In, MarshalAs(UnmanagedType.IDispatch)] object sel) { if (!Validate("WindowSelectionChange")) { Invoker.ReleaseParamsArray(sel); return; } NetOffice.PowerPointApi.Selection newSel = Factory.CreateKnownObjectFromComProxy <NetOffice.PowerPointApi.Selection>(EventClass, sel, typeof(NetOffice.PowerPointApi.Selection)); object[] paramsArray = new object[1]; paramsArray[0] = newSel; EventBinding.RaiseCustomEvent("WindowSelectionChange", ref paramsArray); }
public void WindowSelectionChange([In, MarshalAs(UnmanagedType.IDispatch)] object sel) { Delegate[] recipients = _eventBinding.GetEventRecipients("WindowSelectionChange"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(sel); return; } NetOffice.PowerPointApi.Selection newSel = Factory.CreateObjectFromComProxy(_eventClass, sel) as NetOffice.PowerPointApi.Selection; object[] paramsArray = new object[1]; paramsArray[0] = newSel; _eventBinding.RaiseCustomEvent("WindowSelectionChange", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="sel"></param> /// <param name="cancel"></param> public void WindowBeforeDoubleClick([In, MarshalAs(UnmanagedType.IDispatch)] object sel, [In][Out] ref object cancel) { if (!Validate("WindowBeforeDoubleClick")) { Invoker.ReleaseParamsArray(sel, cancel); return; } NetOffice.PowerPointApi.Selection newSel = Factory.CreateKnownObjectFromComProxy <NetOffice.PowerPointApi.Selection>(EventClass, sel, typeof(NetOffice.PowerPointApi.Selection)); object[] paramsArray = new object[2]; paramsArray[0] = newSel; paramsArray.SetValue(cancel, 1); EventBinding.RaiseCustomEvent("WindowBeforeDoubleClick", ref paramsArray); cancel = ToBoolean(paramsArray[1]); }
public void WindowBeforeDoubleClick([In, MarshalAs(UnmanagedType.IDispatch)] object sel, [In][Out] ref object cancel) { Delegate[] recipients = _eventBinding.GetEventRecipients("WindowBeforeDoubleClick"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(sel, cancel); return; } NetOffice.PowerPointApi.Selection newSel = Factory.CreateObjectFromComProxy(_eventClass, sel) as NetOffice.PowerPointApi.Selection; object[] paramsArray = new object[2]; paramsArray[0] = newSel; paramsArray.SetValue(cancel, 1); _eventBinding.RaiseCustomEvent("WindowBeforeDoubleClick", ref paramsArray); cancel = (bool)paramsArray[1]; }