DocContextChangeEvent.Type Property

InfoPath Developer Reference

A read-only property that returns a string containing the type of context change event that occurred when the OnContextChange event was triggered. Read-only

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.Type

expression   An expression that returns a DocContextChangeEvent object.

Return Value
String

Remarks

The Type property of the DocContextChangeEvent object returns only the value "ContextNode" for context changes in Microsoft Office InfoPath 2007. Nevertheless, if code in an event handler performs actions that depend on current functionality, that code should still be designed to check the value of the Type property, because future versions of InfoPath may use different values for different context changes.

Security Level 2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

See Also