Export (0) Print
Expand All

_SelectNamesDialog.SetDefaultDisplayMode method

Sets the default display mode for the Select Names dialog box, specifying its caption and button labels.

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

[DispIdAttribute()]
void SetDefaultDisplayMode(
	OlDefaultSelectNamesDisplayMode defaultMode
)

Parameters

defaultMode
Type: Microsoft.Office.Interop.Outlook.OlDefaultSelectNamesDisplayMode

A constant in the OlDefaultSelectNamesDisplayMode enumeration that determines the default caption and button labels for the Select Names dialog box.

SetDefaultDisplayMode is optional. If you do not call SetDefaultDisplayMode before calling Display, the default display mode will be OlDefaultSelectNamesDisplayMode.olDefaultMail. To set the display mode to a different value, you should call SetDefaultDisplayMode before calling the Display method.

This method allows you to display the Select Names dialog box without using a resource file to localize the values for the caption, the To label, Cc label, and Bcc label. You can override the built-in behavior by setting your own values for Caption, ToLabel, CcLabel, and BccLabel.

You can set additional properties (for example, setting NumberOfRecipientSelectors to olRecipientSelectors.olToCc) after calling SetDefaultDisplayMode. The Select Names dialog box will observe the subsequent setting.

Show:
© 2014 Microsoft