Share via


MailEnvelope2.Visible property

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

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
Property Visible As Boolean
    Get
    Set
'Usage
Dim instance As MailEnvelope2
Dim value As Boolean

value = instance.Visible

instance.Visible = value
bool Visible { get; set; }

Property value

Type: System.Boolean
true if the envelope is visible; otherwise false.

Implements

MailEnvelope.Visible

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 2003. If there is no default e-mail editor configured, the Visible property will return an error.

Examples

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

MailEnvelopeObject myEnv = thisApplication.ActiveWindow.MailEnvelope;
myEnv.Visible = true;

See also

Reference

MailEnvelope2 interface

MailEnvelope2 members

Visible overload

Microsoft.Office.Interop.InfoPath namespace