次の方法で共有


Window2 Members

Include Protected Members
Include Inherited 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 Window2 type exposes the following members.

Properties

  Name Description
Public property Active This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeWindow2.Active. (Inherited from Window.)
Public property Active Gets a value that indicates whether the window associated with the WindowObject object is the active window.
Public property Caption Gets or sets the caption text for the window represented by the WindowObject object.
Public property CommandBars This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeWindow2.CommandBars. (Inherited from Window.)
Public property CommandBars Gets a reference to the Microsoft Office CommandBars collection contained in the window that is associated with the WindowObject object.
Public property Height Gets or sets the height of the window represented by the WindowObject object, measured in points.
Public property Left Gets or sets the horizontal position of the window represented by the WindowObject object, measured in points.
Public property MailEnvelope This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeWindow2.MailEnvelope. (Inherited from Window.)
Public property MailEnvelope Gets a reference to the MailEnvelopeObject object associated with the window that is represented by the WindowObject object.
Public property TaskPanes This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeWindow2.TaskPanes. (Inherited from Window.)
Public property TaskPanes Gets a reference to the TaskPanesCollection collection that is associated with the WindowObject object.
Public property Top Gets or sets the vertical position of the window represented by the WindowObject object, measured in points.
Public property Width Gets or sets the width of the window represented by the WindowObject object, measured in points.
Public property WindowState Gets or sets the state of the window represented by the WindowObject object.
Public property WindowType This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeWindow2.WindowType. (Inherited from Window.)
Public property WindowType Gets an XdWindowType value that indicates the type of window that is represented by the WindowObject object.
Public property XDocument This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeWindow2.XDocument. (Inherited from Window.)
Public property XDocument Gets a reference to the XDocument object that is associated with the window that is represented by the WindowObject object.

Top

Methods

  Name Description
Public method Activate() This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeWindow2.Activate. (Inherited from Window.)
Public method Activate() Activates the window that is represented by the WindowObject object.
Public method Close(Boolean) This member is a wrapper for a member of a COM interface that has been superseded by a later version. The later version of this interface implements all members of earlier interfaces and additional new members. For information about this member as it is implemented in the later interface, including usage, remarks, and examples, seeWindow2.Close. (Inherited from Window.)
Public method Close(Boolean) Closes the window that is represented by the WindowObject object.

Top

See Also

Reference

Window2 Interface

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace