Edit

Share via


MailEnvelope2.Visible Property

Definition

Gets or sets the visibility of the custom e-mail message created with a MailEnvelopeObject object that is associated with a WindowObject object.

public:
 property bool Visible { bool get(); void set(bool value); };
public bool Visible { get; set; }
member this.Visible : bool with get, set
Public Property Visible As Boolean

Property Value

true if the envelope is visible; otherwise false.

Implements

Examples

In the following example, the Visible property of the MailEnvelope object is used to display an e-mail message in Microsoft Office Outlook 2007.

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

Remarks

When the Visible property of the MailEnvelope object is set to true, the custom e-mail message will be displayed using Microsoft Office Outlook 2007. If there is no default e-mail editor configured, the Visible property will return an error.

Important: This member 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.

Applies to