ApplicationEvents4_XMLSelectionChangeEventHandler Delegate
Office 2010
A Delegate type used to add an event handler for the XMLSelectionChange event. The XMLSelectionChange event occurs when the parent XML node of the current selection changes.
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
[ComVisibleAttribute(false)] public delegate void ApplicationEvents4_XMLSelectionChangeEventHandler( Selection Sel, XMLNode OldXMLNode, XMLNode NewXMLNode, ref int Reason )
Parameters
- Sel
- Type: Microsoft.Office.Interop.Word.Selection
Selection. The text selected, including XML elements. If no text is selected, the Sel parameter returns either nothing or the first character to the right of the insertion point.
- OldXMLNode
- Type: Microsoft.Office.Interop.Word.XMLNode
XMLNode. The XML node from which the insertion point is moving.
- NewXMLNode
- Type: Microsoft.Office.Interop.Word.XMLNode
XMLNode. The XML node to which the insertion point is moving.
- Reason
- Type: System.Int32%
Required Integer. The reason why the selection has changed. Can be any of the WdXMLSelectionChangeReason constants.