Edit

Share via


Window2.MailEnvelope Property

Definition

Gets a reference to the MailEnvelopeObject object associated with the window that is represented by the WindowObject object.

public:
 property Microsoft::Office::Interop::InfoPath::MailEnvelopeObject ^ MailEnvelope { Microsoft::Office::Interop::InfoPath::MailEnvelopeObject ^ get(); };
public Microsoft.Office.Interop.InfoPath.MailEnvelopeObject MailEnvelope { get; }
member this.MailEnvelope : Microsoft.Office.Interop.InfoPath.MailEnvelopeObject
Public ReadOnly Property MailEnvelope As MailEnvelopeObject

Property Value

Implements

Examples

In the following example, the MailEnvelope property of the WindowObject object is used to set a reference to the MailEnvelopeObject object.

<span class="label">MailEnvelope</span> myEnv = thisApplication.ActiveWindow.<span class="label">MailEnvelope</span>;

Remarks

The MailEnvelope object can be used only with the editing window types; if used with a designing window type, it will return an error. It will also return an error if no form is open in the form area.

Applies to