編輯

共用方式為


_SelectNamesDialog.SetDefaultDisplayMode Method

Definition

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

public:
 void SetDefaultDisplayMode(Microsoft::Office::Interop::Outlook::OlDefaultSelectNamesDisplayMode defaultMode);
public void SetDefaultDisplayMode (Microsoft.Office.Interop.Outlook.OlDefaultSelectNamesDisplayMode defaultMode);
Public Sub SetDefaultDisplayMode (defaultMode As OlDefaultSelectNamesDisplayMode)

Parameters

defaultMode
OlDefaultSelectNamesDisplayMode

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

Remarks

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.

Applies to