public void WindowSize([In, MarshalAs(UnmanagedType.IDispatch)] object doc, [In, MarshalAs(UnmanagedType.IDispatch)] object wn) { if (!Validate("WindowSize")) { Invoker.ReleaseParamsArray(doc, wn); return; } NetOffice.WordApi.Document newDoc = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.Document>(EventClass, doc, NetOffice.WordApi.Document.LateBindingApiWrapperType); NetOffice.WordApi.Window newWn = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.Window>(EventClass, wn, NetOffice.WordApi.Window.LateBindingApiWrapperType); object[] paramsArray = new object[2]; paramsArray[0] = newDoc; paramsArray[1] = newWn; EventBinding.RaiseCustomEvent("WindowSize", ref paramsArray); }
public void WindowSize([In, MarshalAs(UnmanagedType.IDispatch)] object doc, [In, MarshalAs(UnmanagedType.IDispatch)] object wn) { Delegate[] recipients = _eventBinding.GetEventRecipients("WindowSize"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(doc, wn); return; } NetOffice.WordApi.Document newDoc = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, doc) as NetOffice.WordApi.Document; NetOffice.WordApi.Window newWn = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, wn) as NetOffice.WordApi.Window; object[] paramsArray = new object[2]; paramsArray[0] = newDoc; paramsArray[1] = newWn; _eventBinding.RaiseCustomEvent("WindowSize", ref paramsArray); }
public void WindowSize(NetOffice.WordApi.Document doc, NetOffice.WordApi.Window wn) { Factory.ExecuteMethod(this, "WindowSize", doc, wn); }
public void WindowSize(NetOffice.WordApi.Document doc, NetOffice.WordApi.Window wn) { object[] paramsArray = Invoker.ValidateParamsArray(doc, wn); Invoker.Method(this, "WindowSize", paramsArray); }