Edit

Share via


XmlChangingEventArgs Class

Definition

Provides data for the Changing event.

public ref class XmlChangingEventArgs abstract : Microsoft::Office::InfoPath::XmlEventArgs
public abstract class XmlChangingEventArgs : Microsoft.Office.InfoPath.XmlEventArgs
type XmlChangingEventArgs = class
    inherit XmlEventArgs
Public MustInherit Class XmlChangingEventArgs
Inherits XmlEventArgs
Inheritance
XmlChangingEventArgs

Remarks

The XmlChangingEventArgs object is passed to the event handler for the Changing event, which occurs after changes to a form's underlying XML document have been made but before the changes have been accepted.

The XmlChangingEventArgs class is derived from the XmlEventArgs class which provides properties that can be used within the event handler to get information about the data that is about to be changed in the form's underlying XML document and the node that is changing. For example, the XmlEventArgs object provides the Site property which gets a reference to an XPathNavigator object that points to the node that is about to be changed in the form's underlying XML document. However, note that the form's underlying XML document is read-only during the Changing event.

In addition to these properties, the XmlChangingEventArgs class provides the CancelableArgs property for returning a XmlFormCancelEventArgs object for cancelling the event.

Constructors

XmlChangingEventArgs()

Properties

CancelableArgs

Gets an XmlFormCancelEventArgs object associated with the event.

Match

Gets an XPathExpression object which contains an XPath expression that returns the node that is currently being changed.

(Inherited from XmlEventArgs)
NewValue

Gets the new value for the node being changed.

(Inherited from XmlEventArgs)
OldParent

Gets an XPathNavigator object pointing to the node which is the parent of the node being deleted.

(Inherited from XmlEventArgs)
OldValue

Gets the original value of the node that is being changed.

(Inherited from XmlEventArgs)
Operation

Gets an XmlOperation enumeration that indicates the type of operation that occurred when the node was changed.

(Inherited from XmlEventArgs)
Site

Gets an XPathNavigator object pointing at the node that is being changed.

(Inherited from XmlEventArgs)
UndoRedo

Gets a value that indicates whether the node being changed is part of an undo or redo operation.

(Inherited from XmlEventArgs)

Applies to