public NetOffice.PowerPointApi.ProtectedViewWindow Open(string fileName, object readPassword) { object[] paramsArray = Invoker.ValidateParamsArray(fileName, readPassword); object returnItem = Invoker.MethodReturn(this, "Open", paramsArray); NetOffice.PowerPointApi.ProtectedViewWindow newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem, NetOffice.PowerPointApi.ProtectedViewWindow.LateBindingApiWrapperType) as NetOffice.PowerPointApi.ProtectedViewWindow; return(newObject); }
public NetOffice.PowerPointApi.ProtectedViewWindow this[Int32 index] { get { object[] paramsArray = Invoker.ValidateParamsArray(index); object returnItem = Invoker.MethodReturn(this, "Item", paramsArray); NetOffice.PowerPointApi.ProtectedViewWindow newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem, NetOffice.PowerPointApi.ProtectedViewWindow.LateBindingApiWrapperType) as NetOffice.PowerPointApi.ProtectedViewWindow; return(newObject); } }
/// <summary> /// /// </summary> /// <param name="protViewWindow"></param> public void ProtectedViewWindowDeactivate([In, MarshalAs(UnmanagedType.IDispatch)] object protViewWindow) { if (!Validate("ProtectedViewWindowDeactivate")) { Invoker.ReleaseParamsArray(protViewWindow); return; } NetOffice.PowerPointApi.ProtectedViewWindow newProtViewWindow = Factory.CreateKnownObjectFromComProxy <NetOffice.PowerPointApi.ProtectedViewWindow>(EventClass, protViewWindow, typeof(NetOffice.PowerPointApi.ProtectedViewWindow)); object[] paramsArray = new object[1]; paramsArray[0] = newProtViewWindow; EventBinding.RaiseCustomEvent("ProtectedViewWindowDeactivate", ref paramsArray); }
public void ProtectedViewWindowDeactivate([In, MarshalAs(UnmanagedType.IDispatch)] object protViewWindow) { Delegate[] recipients = _eventBinding.GetEventRecipients("ProtectedViewWindowDeactivate"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(protViewWindow); return; } NetOffice.PowerPointApi.ProtectedViewWindow newProtViewWindow = Factory.CreateObjectFromComProxy(_eventClass, protViewWindow) as NetOffice.PowerPointApi.ProtectedViewWindow; object[] paramsArray = new object[1]; paramsArray[0] = newProtViewWindow; _eventBinding.RaiseCustomEvent("ProtectedViewWindowDeactivate", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="protViewWindow"></param> /// <param name="cancel"></param> public void ProtectedViewWindowBeforeEdit([In, MarshalAs(UnmanagedType.IDispatch)] object protViewWindow, [In][Out] ref object cancel) { if (!Validate("ProtectedViewWindowBeforeEdit")) { Invoker.ReleaseParamsArray(protViewWindow, cancel); return; } NetOffice.PowerPointApi.ProtectedViewWindow newProtViewWindow = Factory.CreateKnownObjectFromComProxy <NetOffice.PowerPointApi.ProtectedViewWindow>(EventClass, protViewWindow, typeof(NetOffice.PowerPointApi.ProtectedViewWindow)); object[] paramsArray = new object[2]; paramsArray[0] = newProtViewWindow; paramsArray.SetValue(cancel, 1); EventBinding.RaiseCustomEvent("ProtectedViewWindowBeforeEdit", ref paramsArray); cancel = ToBoolean(paramsArray[1]); }
public void ProtectedViewWindowBeforeEdit([In, MarshalAs(UnmanagedType.IDispatch)] object protViewWindow, [In][Out] ref object cancel) { Delegate[] recipients = _eventBinding.GetEventRecipients("ProtectedViewWindowBeforeEdit"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(protViewWindow, cancel); return; } NetOffice.PowerPointApi.ProtectedViewWindow newProtViewWindow = Factory.CreateObjectFromComProxy(_eventClass, protViewWindow) as NetOffice.PowerPointApi.ProtectedViewWindow; object[] paramsArray = new object[2]; paramsArray[0] = newProtViewWindow; paramsArray.SetValue(cancel, 1); _eventBinding.RaiseCustomEvent("ProtectedViewWindowBeforeEdit", ref paramsArray); cancel = (bool)paramsArray[1]; }
public void ProtectedViewWindowBeforeClose([In, MarshalAs(UnmanagedType.IDispatch)] object protViewWindow, [In] object protectedViewCloseReason, [In][Out] ref object cancel) { if (!Validate("ProtectedViewWindowBeforeClose")) { Invoker.ReleaseParamsArray(protViewWindow, protectedViewCloseReason, cancel); return; } NetOffice.PowerPointApi.ProtectedViewWindow newProtViewWindow = Factory.CreateKnownObjectFromComProxy <NetOffice.PowerPointApi.ProtectedViewWindow>(EventClass, protViewWindow, NetOffice.PowerPointApi.ProtectedViewWindow.LateBindingApiWrapperType); NetOffice.PowerPointApi.Enums.PpProtectedViewCloseReason newProtectedViewCloseReason = (NetOffice.PowerPointApi.Enums.PpProtectedViewCloseReason)protectedViewCloseReason; object[] paramsArray = new object[3]; paramsArray[0] = newProtViewWindow; paramsArray[1] = newProtectedViewCloseReason; paramsArray.SetValue(cancel, 2); EventBinding.RaiseCustomEvent("ProtectedViewWindowBeforeClose", ref paramsArray); cancel = ToBoolean(paramsArray[2]); }