public Int32 ProtectedViewWindowDeactivate(NetOffice.WordApi.ProtectedViewWindow pvWindow)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(pvWindow);
            object   returnItem  = Invoker.MethodReturn(this, "ProtectedViewWindowDeactivate", paramsArray);

            return(NetRuntimeSystem.Convert.ToInt32(returnItem));
        }
        public Int32 ProtectedViewWindowBeforeClose(NetOffice.WordApi.ProtectedViewWindow pvWindow, Int32 closeReason, bool cancel)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(pvWindow, closeReason, cancel);
            object   returnItem  = Invoker.MethodReturn(this, "ProtectedViewWindowBeforeClose", paramsArray);

            return(NetRuntimeSystem.Convert.ToInt32(returnItem));
        }
        public void ProtectedViewWindowDeactivate([In, MarshalAs(UnmanagedType.IDispatch)] object pvWindow)
        {
            if (!Validate("ProtectedViewWindowDeactivate"))
            {
                Invoker.ReleaseParamsArray(pvWindow);
                return;
            }

            NetOffice.WordApi.ProtectedViewWindow newPvWindow = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.ProtectedViewWindow>(EventClass, pvWindow, NetOffice.WordApi.ProtectedViewWindow.LateBindingApiWrapperType);
            object[] paramsArray = new object[1];
            paramsArray[0] = newPvWindow;
            EventBinding.RaiseCustomEvent("ProtectedViewWindowDeactivate", ref paramsArray);
        }
        public void ProtectedViewWindowDeactivate([In, MarshalAs(UnmanagedType.IDispatch)] object pvWindow)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("ProtectedViewWindowDeactivate");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(pvWindow);
                return;
            }

            NetOffice.WordApi.ProtectedViewWindow newPvWindow = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, pvWindow) as NetOffice.WordApi.ProtectedViewWindow;
            object[] paramsArray = new object[1];
            paramsArray[0] = newPvWindow;
            _eventBinding.RaiseCustomEvent("ProtectedViewWindowDeactivate", ref paramsArray);
        }
        public void ProtectedViewWindowBeforeEdit([In, MarshalAs(UnmanagedType.IDispatch)] object pvWindow, [In][Out] ref object cancel)
        {
            if (!Validate("ProtectedViewWindowBeforeEdit"))
            {
                Invoker.ReleaseParamsArray(pvWindow, cancel);
                return;
            }

            NetOffice.WordApi.ProtectedViewWindow newPvWindow = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.ProtectedViewWindow>(EventClass, pvWindow, NetOffice.WordApi.ProtectedViewWindow.LateBindingApiWrapperType);
            object[] paramsArray = new object[2];
            paramsArray[0] = newPvWindow;
            paramsArray.SetValue(cancel, 1);
            EventBinding.RaiseCustomEvent("ProtectedViewWindowBeforeEdit", ref paramsArray);

            cancel = ToBoolean(paramsArray[1]);
        }
        public void ProtectedViewWindowBeforeEdit([In, MarshalAs(UnmanagedType.IDispatch)] object pvWindow, [In][Out] ref object cancel)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("ProtectedViewWindowBeforeEdit");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(pvWindow, cancel);
                return;
            }

            NetOffice.WordApi.ProtectedViewWindow newPvWindow = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, pvWindow) as NetOffice.WordApi.ProtectedViewWindow;
            object[] paramsArray = new object[2];
            paramsArray[0] = newPvWindow;
            paramsArray.SetValue(cancel, 1);
            _eventBinding.RaiseCustomEvent("ProtectedViewWindowBeforeEdit", ref paramsArray);

            cancel = (bool)paramsArray[1];
        }
예제 #7
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="pvWindow"></param>
        /// <param name="closeReason"></param>
        /// <param name="cancel"></param>
        public void ProtectedViewWindowBeforeClose([In, MarshalAs(UnmanagedType.IDispatch)] object pvWindow, [In] object closeReason, [In][Out] ref object cancel)
        {
            if (!Validate("ProtectedViewWindowBeforeClose"))
            {
                Invoker.ReleaseParamsArray(pvWindow, closeReason, cancel);
                return;
            }

            NetOffice.WordApi.ProtectedViewWindow newPvWindow = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.ProtectedViewWindow>(EventClass, pvWindow, typeof(NetOffice.WordApi.ProtectedViewWindow));
            Int32 newCloseReason = ToInt32(closeReason);

            object[] paramsArray = new object[3];
            paramsArray[0] = newPvWindow;
            paramsArray[1] = newCloseReason;
            paramsArray.SetValue(cancel, 2);
            EventBinding.RaiseCustomEvent("ProtectedViewWindowBeforeClose", ref paramsArray);

            cancel = ToBoolean(paramsArray[2]);
        }
예제 #8
0
 public Int32 ProtectedViewWindowDeactivate(NetOffice.WordApi.ProtectedViewWindow pvWindow)
 {
     return(Factory.ExecuteInt32MethodGet(this, "ProtectedViewWindowDeactivate", pvWindow));
 }
예제 #9
0
 public Int32 ProtectedViewWindowBeforeClose(NetOffice.WordApi.ProtectedViewWindow pvWindow, Int32 closeReason, bool cancel)
 {
     return(Factory.ExecuteInt32MethodGet(this, "ProtectedViewWindowBeforeClose", pvWindow, closeReason, cancel));
 }
예제 #10
0
 public Int32 ProtectedViewWindowBeforeEdit(NetOffice.WordApi.ProtectedViewWindow pvWindow, bool cancel)
 {
     return(Factory.ExecuteInt32MethodGet(this, "ProtectedViewWindowBeforeEdit", pvWindow, cancel));
 }