Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        /// <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]);
        }
Beispiel #4
0
        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];
        }