Window2 Members
This type is a wrapper for a COM interface implemented by a coclass that is required by managed code for COM interoperability. To access the members specified by this interface, use the type that wraps the coclass that implements this interface. For information about that type, including usage, remarks, and examples, seeWindowObject.
The following tables list the members exposed by the Window2 type.
Public Properties
Name | Description | |
---|---|---|
Active | Gets a value that indicates whether the window associated with the WindowObject object is the active window. | |
Caption | Gets or sets the caption text for the window represented by the WindowObject object. | |
CommandBars | Gets a reference to the Microsoft Office CommandBars collection contained in the window that is associated with the WindowObject object. | |
Height | Gets or sets the height of the window represented by the WindowObject object, measured in points. | |
Left | Gets or sets the horizontal position of the window represented by the WindowObject object, measured in points. | |
MailEnvelope | Gets a reference to the MailEnvelopeObject object associated with the window that is represented by the WindowObject object. | |
TaskPanes | Gets a reference to the TaskPanesCollection collection that is associated with the WindowObject object. | |
Top | Gets or sets the vertical position of the window represented by the WindowObject object, measured in points. | |
Width | Gets or sets the width of the window represented by the WindowObject object, measured in points. | |
WindowState | Gets or sets the state of the window represented by the WindowObject object. | |
WindowType | Gets an XdWindowType value that indicates the type of window that is represented by the WindowObject object. | |
XDocument | Gets a reference to the XDocument object that is associated with the window that is represented by the WindowObject object. |
Top
Public Methods
Name | Description | |
---|---|---|
Activate | Activates the window that is represented by the WindowObject object. | |
Close | Closes the window that is represented by the WindowObject object. |
Top
See Also
Reference
Window2 Interface
Microsoft.Office.Interop.InfoPath Namespace