ApplicationEvents4_XMLSelectionChangeEventHandler Delegate

Definition

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.

public delegate void ApplicationEvents4_XMLSelectionChangeEventHandler(Selection ^ Sel, XMLNode ^ OldXMLNode, XMLNode ^ NewXMLNode, int % Reason);
[System.Runtime.InteropServices.ComVisible(false)]
public delegate void ApplicationEvents4_XMLSelectionChangeEventHandler(Selection Sel, XMLNode OldXMLNode, XMLNode NewXMLNode, ref int Reason);
type ApplicationEvents4_XMLSelectionChangeEventHandler = delegate of Selection * XMLNode * XMLNode * int -> unit
Public Delegate Sub ApplicationEvents4_XMLSelectionChangeEventHandler(Sel As Selection, OldXMLNode As XMLNode, NewXMLNode As XMLNode, ByRef Reason As Integer)

Parameters

Sel
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
XMLNode

XMLNode. The XML node from which the insertion point is moving.

NewXMLNode
XMLNode

XMLNode. The XML node to which the insertion point is moving.

Reason
Int32

Required Integer. The reason why the selection has changed. Can be any of the WdXMLSelectionChangeReason constants.

Attributes

Applies to