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)

Usage

Sub Sub1(Sel As Selection, _
    OldXMLNode As XMLNode, _
    NewXMLNode As XMLNode, _
    Reason As Integer)
End Sub
Dim applicationEvents4_XMLSelectionChangeEventHandler1 As New ApplicationEvents4_XMLSelectionChangeEventHandler(AddressOf Sub1)

Syntax

Public Delegate Sub ApplicationEvents4_XMLSelectionChangeEventHandler( _
    <InAttribute()> ByVal Sel As Selection, _
    <InAttribute()> ByVal OldXMLNode As XMLNode, _
    <InAttribute()> ByVal NewXMLNode As XMLNode, _
    <InAttribute()> ByRef Reason As Integer _
)
public delegate void ApplicationEvents4_XMLSelectionChangeEventHandler(
    [In] Selection Sel, 
    [In] XMLNode OldXMLNode, 
    [In] XMLNode NewXMLNode, 
    [In] ref int Reason
);
public delegate Void ApplicationEvents4_XMLSelectionChangeEventHandler(
    Selection^ Sel, 
    XMLNode^ OldXMLNode, 
    XMLNode^ NewXMLNode, 
    &Int32 Reason
);
public delegate void ApplicationEvents4_XMLSelectionChangeEventHandler(
    /*in*/Selection Sel, 
    /*in*/XMLNode OldXMLNode, 
    /*in*/XMLNode NewXMLNode, 
    /*in*/int Reason
);
In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters

  • Sel
    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. The XML node from which the insertion point is moving.
  • NewXMLNode
    XMLNode. The XML node to which the insertion point is moving.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Microsoft.Office.Interop.Word Namespace