public void WindowSelectionChange([In, MarshalAs(UnmanagedType.IDispatch)] object sel) { if (!Validate("WindowSelectionChange")) { Invoker.ReleaseParamsArray(sel); return; } NetOffice.WordApi.Selection newSel = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.Selection>(EventClass, sel, NetOffice.WordApi.Selection.LateBindingApiWrapperType); object[] paramsArray = new object[1]; paramsArray[0] = newSel; EventBinding.RaiseCustomEvent("WindowSelectionChange", ref paramsArray); }
public void WindowSelectionChange([In, MarshalAs(UnmanagedType.IDispatch)] object sel) { Delegate[] recipients = _eventBinding.GetEventRecipients("WindowSelectionChange"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(sel); return; } NetOffice.WordApi.Selection newSel = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, sel) as NetOffice.WordApi.Selection; object[] paramsArray = new object[1]; paramsArray[0] = newSel; _eventBinding.RaiseCustomEvent("WindowSelectionChange", ref paramsArray); }
public void WindowBeforeDoubleClick([In, MarshalAs(UnmanagedType.IDispatch)] object sel, [In][Out] ref object cancel) { if (!Validate("WindowBeforeDoubleClick")) { Invoker.ReleaseParamsArray(sel, cancel); return; } NetOffice.WordApi.Selection newSel = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.Selection>(EventClass, sel, NetOffice.WordApi.Selection.LateBindingApiWrapperType); object[] paramsArray = new object[2]; paramsArray[0] = newSel; paramsArray.SetValue(cancel, 1); EventBinding.RaiseCustomEvent("WindowBeforeDoubleClick", ref paramsArray); cancel = ToBoolean(paramsArray[1]); }
void Application_WindowSelectionChangeEvent(NetOffice.WordApi.Selection Sel) { try { if (checkBoxAutoSearch.Checked) { textBoxKeyWords.Text = Sel.Text.Replace("\r", ""); buttonSearch_Click(buttonSearch, new EventArgs()); } Sel.Dispose(); } catch (Exception exception) { DisplayError(exception); } }
public void WindowBeforeDoubleClick([In, MarshalAs(UnmanagedType.IDispatch)] object sel, [In][Out] ref object cancel) { Delegate[] recipients = _eventBinding.GetEventRecipients("WindowBeforeDoubleClick"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(sel, cancel); return; } NetOffice.WordApi.Selection newSel = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, sel) as NetOffice.WordApi.Selection; object[] paramsArray = new object[2]; paramsArray[0] = newSel; paramsArray.SetValue(cancel, 1); _eventBinding.RaiseCustomEvent("WindowBeforeDoubleClick", ref paramsArray); cancel = (bool)paramsArray[1]; }
public void XMLSelectionChange([In, MarshalAs(UnmanagedType.IDispatch)] object sel, [In, MarshalAs(UnmanagedType.IDispatch)] object oldXMLNode, [In, MarshalAs(UnmanagedType.IDispatch)] object newXMLNode, [In][Out] ref object reason) { if (!Validate("XMLSelectionChange")) { Invoker.ReleaseParamsArray(sel, oldXMLNode, newXMLNode, reason); return; } NetOffice.WordApi.Selection newSel = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.Selection>(EventClass, sel, NetOffice.WordApi.Selection.LateBindingApiWrapperType); NetOffice.WordApi.XMLNode newOldXMLNode = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.XMLNode>(EventClass, oldXMLNode, NetOffice.WordApi.XMLNode.LateBindingApiWrapperType); NetOffice.WordApi.XMLNode newNewXMLNode = Factory.CreateKnownObjectFromComProxy <NetOffice.WordApi.XMLNode>(EventClass, newXMLNode, NetOffice.WordApi.XMLNode.LateBindingApiWrapperType); object[] paramsArray = new object[4]; paramsArray[0] = newSel; paramsArray[1] = newOldXMLNode; paramsArray[2] = newNewXMLNode; paramsArray.SetValue(reason, 3); EventBinding.RaiseCustomEvent("XMLSelectionChange", ref paramsArray); reason = ToInt32(paramsArray[3]); }
public void XMLSelectionChange([In, MarshalAs(UnmanagedType.IDispatch)] object sel, [In, MarshalAs(UnmanagedType.IDispatch)] object oldXMLNode, [In, MarshalAs(UnmanagedType.IDispatch)] object newXMLNode, [In][Out] ref object reason) { Delegate[] recipients = _eventBinding.GetEventRecipients("XMLSelectionChange"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(sel, oldXMLNode, newXMLNode, reason); return; } NetOffice.WordApi.Selection newSel = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, sel) as NetOffice.WordApi.Selection; NetOffice.WordApi.XMLNode newOldXMLNode = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, oldXMLNode) as NetOffice.WordApi.XMLNode; NetOffice.WordApi.XMLNode newNewXMLNode = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, newXMLNode) as NetOffice.WordApi.XMLNode; object[] paramsArray = new object[4]; paramsArray[0] = newSel; paramsArray[1] = newOldXMLNode; paramsArray[2] = newNewXMLNode; paramsArray.SetValue(reason, 3); _eventBinding.RaiseCustomEvent("XMLSelectionChange", ref paramsArray); reason = (Int32)paramsArray[3]; }
public void WindowBeforeDoubleClick(NetOffice.WordApi.Selection sel, bool cancel) { Factory.ExecuteMethod(this, "WindowBeforeDoubleClick", sel, cancel); }
public void WindowSelectionChange(NetOffice.WordApi.Selection sel) { Factory.ExecuteMethod(this, "WindowSelectionChange", sel); }
public void WindowBeforeDoubleClick(NetOffice.WordApi.Selection sel, bool cancel) { object[] paramsArray = Invoker.ValidateParamsArray(sel, cancel); Invoker.Method(this, "WindowBeforeDoubleClick", paramsArray); }
public void WindowSelectionChange(NetOffice.WordApi.Selection sel) { object[] paramsArray = Invoker.ValidateParamsArray(sel); Invoker.Method(this, "WindowSelectionChange", paramsArray); }
public void XMLSelectionChange(NetOffice.WordApi.Selection sel, NetOffice.WordApi.XMLNode oldXMLNode, NetOffice.WordApi.XMLNode newXMLNode, Int32 reason) { object[] paramsArray = Invoker.ValidateParamsArray(sel, oldXMLNode, newXMLNode, reason); Invoker.Method(this, "XMLSelectionChange", paramsArray); }
public void XMLSelectionChange(NetOffice.WordApi.Selection sel, NetOffice.WordApi.XMLNode oldXMLNode, NetOffice.WordApi.XMLNode newXMLNode, Int32 reason) { Factory.ExecuteMethod(this, "XMLSelectionChange", sel, oldXMLNode, newXMLNode, reason); }