Share via


ApplicationEvents4_XMLSelectionChangeEventHandler 代理人

定義

イベントのイベント ハンドラーXMLSelectionChangeを追加するために使用されるデリゲート型。 XMLSelectionChange イベントは、現在の選択の親 XML ノードが変更されたときに発生します。

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)

パラメーター

Sel
Selection

Selection. XML 要素を含め、選択されている文字列を指定します。 テキストが選択されていない場合、 Sel パラメーターは何も返さないか、カーソルの右側の最初の文字を返します。

OldXMLNode
XMLNode

XMLNode. カーソル位置の移動を開始する XML ノードを指定します。

NewXMLNode
XMLNode

XMLNode。 カーソル位置の移動先の XML ノードを指定します。

Reason
Int32

整数型 (Integer) の値を使用します。 選択が変更された理由。 任意の定数を WdXMLSelectionChangeReason 指定できます。

属性

適用対象