public Int32 WorkbookSync(NetOffice.ExcelApi.Workbook wb, NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType) { object[] paramsArray = Invoker.ValidateParamsArray(wb, syncEventType); object returnItem = Invoker.MethodReturn(this, "WorkbookSync", paramsArray); return(NetRuntimeSystem.Convert.ToInt32(returnItem)); }
public void Sync([In] object syncEventType) { if (!Validate("Sync")) { Invoker.ReleaseParamsArray(syncEventType); return; } NetOffice.OfficeApi.Enums.MsoSyncEventType newSyncEventType = (NetOffice.OfficeApi.Enums.MsoSyncEventType)syncEventType; object[] paramsArray = new object[1]; paramsArray[0] = newSyncEventType; EventBinding.RaiseCustomEvent("Sync", ref paramsArray); }
public void Sync([In] object syncEventType) { Delegate[] recipients = _eventBinding.GetEventRecipients("Sync"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(syncEventType); return; } NetOffice.OfficeApi.Enums.MsoSyncEventType newSyncEventType = (NetOffice.OfficeApi.Enums.MsoSyncEventType)syncEventType; object[] paramsArray = new object[1]; paramsArray[0] = newSyncEventType; _eventBinding.RaiseCustomEvent("Sync", ref paramsArray); }
public void DocumentSync([In, MarshalAs(UnmanagedType.IDispatch)] object doc, [In] object syncEventType) { if (!Validate("DocumentSync")) { Invoker.ReleaseParamsArray(doc, syncEventType); return; } NetOffice.WordApi.Document newDoc = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.Document>(EventClass, doc, NetOffice.WordApi.Document.LateBindingApiWrapperType); NetOffice.OfficeApi.Enums.MsoSyncEventType newSyncEventType = (NetOffice.OfficeApi.Enums.MsoSyncEventType)syncEventType; object[] paramsArray = new object[2]; paramsArray[0] = newDoc; paramsArray[1] = newSyncEventType; EventBinding.RaiseCustomEvent("DocumentSync", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="pres"></param> /// <param name="syncEventType"></param> public void PresentationSync([In, MarshalAs(UnmanagedType.IDispatch)] object pres, [In] object syncEventType) { if (!Validate("PresentationSync")) { Invoker.ReleaseParamsArray(pres, syncEventType); return; } NetOffice.PowerPointApi.Presentation newPres = Factory.CreateKnownObjectFromComProxy <NetOffice.PowerPointApi.Presentation>(EventClass, pres, typeof(NetOffice.PowerPointApi.Presentation)); NetOffice.OfficeApi.Enums.MsoSyncEventType newSyncEventType = (NetOffice.OfficeApi.Enums.MsoSyncEventType)syncEventType; object[] paramsArray = new object[2]; paramsArray[0] = newPres; paramsArray[1] = newSyncEventType; EventBinding.RaiseCustomEvent("PresentationSync", ref paramsArray); }
/// <summary> /// /// </summary> /// <param name="wb"></param> /// <param name="syncEventType"></param> public void WorkbookSync([In, MarshalAs(UnmanagedType.IDispatch)] object wb, [In] object syncEventType) { if (!Validate("WorkbookSync")) { Invoker.ReleaseParamsArray(wb, syncEventType); return; } NetOffice.ExcelApi.Workbook newWb = Factory.CreateKnownObjectFromComProxy <NetOffice.ExcelApi.Workbook>(EventClass, wb, typeof(NetOffice.ExcelApi.Workbook)); NetOffice.OfficeApi.Enums.MsoSyncEventType newSyncEventType = (NetOffice.OfficeApi.Enums.MsoSyncEventType)syncEventType; object[] paramsArray = new object[2]; paramsArray[0] = newWb; paramsArray[1] = newSyncEventType; EventBinding.RaiseCustomEvent("WorkbookSync", ref paramsArray); }
public void DocumentSync([In, MarshalAs(UnmanagedType.IDispatch)] object doc, [In] object syncEventType) { Delegate[] recipients = _eventBinding.GetEventRecipients("DocumentSync"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(doc, syncEventType); return; } NetOffice.WordApi.Document newDoc = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, doc) as NetOffice.WordApi.Document; NetOffice.OfficeApi.Enums.MsoSyncEventType newSyncEventType = (NetOffice.OfficeApi.Enums.MsoSyncEventType)syncEventType; object[] paramsArray = new object[2]; paramsArray[0] = newDoc; paramsArray[1] = newSyncEventType; _eventBinding.RaiseCustomEvent("DocumentSync", ref paramsArray); }
public void PresentationSync([In, MarshalAs(UnmanagedType.IDispatch)] object pres, [In] object syncEventType) { Delegate[] recipients = _eventBinding.GetEventRecipients("PresentationSync"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(pres, syncEventType); return; } NetOffice.PowerPointApi.Presentation newPres = Factory.CreateObjectFromComProxy(_eventClass, pres) as NetOffice.PowerPointApi.Presentation; NetOffice.OfficeApi.Enums.MsoSyncEventType newSyncEventType = (NetOffice.OfficeApi.Enums.MsoSyncEventType)syncEventType; object[] paramsArray = new object[2]; paramsArray[0] = newPres; paramsArray[1] = newSyncEventType; _eventBinding.RaiseCustomEvent("PresentationSync", ref paramsArray); }
public Int32 Sync(NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType) { return(Factory.ExecuteInt32MethodGet(this, "Sync", syncEventType)); }
public virtual Int32 WorkbookSync(NetOffice.ExcelApi.Workbook wb, NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType) { return(InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "WorkbookSync", wb, syncEventType)); }
public virtual Int32 Sync(NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType) { return(InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "Sync", syncEventType)); }
public void DocumentSync(NetOffice.WordApi.Document doc, NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType) { object[] paramsArray = Invoker.ValidateParamsArray(doc, syncEventType); Invoker.Method(this, "DocumentSync", paramsArray); }
public void DocumentSync(NetOffice.WordApi.Document doc, NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType) { Factory.ExecuteMethod(this, "DocumentSync", doc, syncEventType); }
public Int32 WorkbookSync(NetOffice.ExcelApi.Workbook wb, NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType) { return(Factory.ExecuteInt32MethodGet(this, "WorkbookSync", wb, syncEventType)); }
public virtual void DocumentSync(NetOffice.WordApi.Document doc, NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType) { InvokerService.InvokeInternal.ExecuteMethod(this, "DocumentSync", doc, syncEventType); }