MailModule Object

Outlook Developer Reference

Represents the Mail navigation module in the Navigation Pane of an explorer.

Version Information
 Version Added:  Outlook 2007


The MailModule object, derived from the NavigationModule object, provides read-only access to the navigation groups contained in the Mail navigation module of the Navigation Pane for an explorer. Use the GetNavigationModule method or the Item method of the Modules collection for the parent NavigationPane object to retrieve a NavigationModule object, then use the NavigationModuleType property of the NavigationModule object to retrieve the navigation module type. If the NavigationModuleType property is set to olModuleMail, you can then cast the NavigationModule object reference as a MailModule object to access the NavigationGroups property for that navigation module.

Bb176369.vs_note(en-us,office.12).gif  Note
Unlike other navigation modules, such as the CalendarModule object, you cannot create or delete navigation groups in the MailModule object.

You can use the Visible property to determine if the navigation module is visible, and the Position property to return or set the display position of the navigation module within the Navigation Pane. You can use the Name property to return the display name of the Mail navigation module within the Navigation Pane.

See Also