The DocEvent Object

The DocEvent object is used when switching views in an InfoPath form template and when a view has changed its appearance, which is in association with an OnAfterChange event. The DocEvent object is passed as an argument to either the OnSwitchView event or the OnAfterChange event.

DocEvent Object Methods

The DocEvent object has no methods.

DocEvent Object Properties

The DocEvent object has a single property, XDocument.

The XDocument property returns a reference to the XDocument object associated with the DocEvent object. This property is available only during an OnSwitchView event or an OnAfterChange event.

Get Microsoft® Office InfoPath™ 2003 Kick Start now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.