Microsoft Office InfoPath 2003 Kick Start

 <  Day Day Up  >  

The Window Object

The Window object represents a window used in InfoPath.

Window Object Methods

The Window object has two methods:

  • Activate() ” Activates the corresponding editing window. The method cannot be used with a design window, or an error will be raised. Security level 2.

  • Close() ” Closes the window corresponding to the Window object. Security level 2.

Window Object Properties

The Window object has six properties:

  • Active ” Read-only. Indicates whether the window associated with the Window object is or is not active. Security level 0.

  • CommandBars ” Read-only. Returns a reference to the CommandBars collection contained in the corresponding window. Security level 3.

  • MailEnvelope ” Read-only. References the MailEnvelope object associated with the window. Security level 2.

  • TaskPanes ” Read-only. Returns the TaskPanes collection associated with the Window object. Security level 0.

  • Type ” Indicates whether the window is a design window (has a value of 1 ) or a form-filling window (has a value of ).

  • XDocument ” Read-only. Returns a reference to the corresponding XDocument object. Security level 2.

 <  Day Day Up  >  

Категории