XmlEventArgs.UndoRedo property

Office 2013 and later

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

Namespace:  Microsoft.Office.InfoPath
Assembly:  Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)

public abstract bool UndoRedo { get; }

Property value

Type: System.Boolean
true if the node being changed is part of an undo or redo operation; otherwise false.

When an undo or a redo operation takes place, the form's underlying XML document is placed in a read-only state and cannot be modified. If this occurs during a Changed event, the UndoRedo property can be used to bypass the data validation logic contained in the handler for the event.

This member can be accessed without restrictions.

This type or member can be accessed from code running in forms opened in Microsoft InfoPath Filler or in a Web browser.

Show: