ApplicationEvents4_XMLSelectionChangeEventHandler Delegate
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.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
<ComVisibleAttribute(False)> _
Public Delegate Sub ApplicationEvents4_XMLSelectionChangeEventHandler ( _
Sel As Selection, _
OldXMLNode As XMLNode, _
NewXMLNode As XMLNode, _
ByRef Reason As Integer _
)
'Usage
Dim instance As New ApplicationEvents4_XMLSelectionChangeEventHandler(AddressOf HandlerMethod)
[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.