Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 5
0
        /// <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);
        }
Exemplo n.º 6
0
        /// <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);
        }
Exemplo n.º 8
0
        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);
        }
Exemplo n.º 9
0
 public Int32 Sync(NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType)
 {
     return(Factory.ExecuteInt32MethodGet(this, "Sync", syncEventType));
 }
Exemplo n.º 10
0
 public virtual Int32 WorkbookSync(NetOffice.ExcelApi.Workbook wb, NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType)
 {
     return(InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "WorkbookSync", wb, syncEventType));
 }
Exemplo n.º 11
0
 public virtual Int32 Sync(NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType)
 {
     return(InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "Sync", syncEventType));
 }
Exemplo n.º 12
0
 public void DocumentSync(NetOffice.WordApi.Document doc, NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType)
 {
     object[] paramsArray = Invoker.ValidateParamsArray(doc, syncEventType);
     Invoker.Method(this, "DocumentSync", paramsArray);
 }
Exemplo n.º 13
0
 public void DocumentSync(NetOffice.WordApi.Document doc, NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType)
 {
     Factory.ExecuteMethod(this, "DocumentSync", doc, syncEventType);
 }
Exemplo n.º 14
0
 public Int32 WorkbookSync(NetOffice.ExcelApi.Workbook wb, NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType)
 {
     return(Factory.ExecuteInt32MethodGet(this, "WorkbookSync", wb, syncEventType));
 }
Exemplo n.º 15
0
 public virtual void DocumentSync(NetOffice.WordApi.Document doc, NetOffice.OfficeApi.Enums.MsoSyncEventType syncEventType)
 {
     InvokerService.InvokeInternal.ExecuteMethod(this, "DocumentSync", doc, syncEventType);
 }