public NetOffice.OutlookApi.View Copy(string name) { object[] paramsArray = Invoker.ValidateParamsArray(name); object returnItem = Invoker.MethodReturn(this, "Copy", paramsArray); NetOffice.OutlookApi.View newObject = Factory.CreateKnownObjectFromComProxy(this, returnItem,NetOffice.OutlookApi.View.LateBindingApiWrapperType) as NetOffice.OutlookApi.View; return newObject; }
/// <summary> /// /// </summary> /// <param name="view"></param> public void ViewRemove([In, MarshalAs(UnmanagedType.IDispatch)] object view) { if (!Validate("ViewRemove")) { Invoker.ReleaseParamsArray(view); } NetOffice.OutlookApi.View newView = Factory.CreateKnownObjectFromComProxy <NetOffice.OutlookApi.View>(EventClass, view, typeof(NetOffice.OutlookApi.View)); object[] paramsArray = new object[1]; paramsArray[0] = newView; EventBinding.RaiseCustomEvent("ViewRemove", ref paramsArray); }
public void ViewRemove([In, MarshalAs(UnmanagedType.IDispatch)] object view) { Delegate[] recipients = _eventBinding.GetEventRecipients("ViewRemove"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(view); return; } NetOffice.OutlookApi.View newView = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, view) as NetOffice.OutlookApi.View; object[] paramsArray = new object[1]; paramsArray[0] = newView; _eventBinding.RaiseCustomEvent("ViewRemove", ref paramsArray); }
public void ViewContextMenuDisplay([In, MarshalAs(UnmanagedType.IDispatch)] object commandBar, [In, MarshalAs(UnmanagedType.IDispatch)] object view) { if (!Validate("ViewContextMenuDisplay")) { Invoker.ReleaseParamsArray(commandBar, view); return; } NetOffice.OfficeApi.CommandBar newCommandBar = Factory.CreateKnownObjectFromComProxy <NetOffice.OfficeApi.CommandBar>(EventClass, commandBar, NetOffice.OfficeApi.CommandBar.LateBindingApiWrapperType); NetOffice.OutlookApi.View newView = Factory.CreateKnownObjectFromComProxy <NetOffice.OutlookApi.View>(EventClass, view, NetOffice.OutlookApi.View.LateBindingApiWrapperType); object[] paramsArray = new object[2]; paramsArray[0] = newCommandBar; paramsArray[1] = newView; EventBinding.RaiseCustomEvent("ViewContextMenuDisplay", ref paramsArray); }
public void ViewContextMenuDisplay([In, MarshalAs(UnmanagedType.IDispatch)] object commandBar, [In, MarshalAs(UnmanagedType.IDispatch)] object view) { Delegate[] recipients = _eventBinding.GetEventRecipients("ViewContextMenuDisplay"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(commandBar, view); return; } NetOffice.OfficeApi.CommandBar newCommandBar = Factory.CreateObjectFromComProxy(_eventClass, commandBar) as NetOffice.OfficeApi.CommandBar; NetOffice.OutlookApi.View newView = Factory.CreateObjectFromComProxy(_eventClass, view) as NetOffice.OutlookApi.View; object[] paramsArray = new object[2]; paramsArray[0] = newCommandBar; paramsArray[1] = newView; _eventBinding.RaiseCustomEvent("ViewContextMenuDisplay", ref paramsArray); }