Edit

Share via


Dialog Interface

Definition

Represents a built-in dialog box.

public interface class Dialog
[System.Runtime.InteropServices.Guid("000209B8-0000-0000-C000-000000000046")]
public interface Dialog
type Dialog = interface
Public Interface Dialog
Attributes

Remarks

The Dialog object is a member of the Dialogs collection. The Dialogs collection contains all the built-in dialog boxes in Microsoft Word. You cannot create a new built-in dialog box or add one to the Dialogs collection.

Use Dialogs(index), where index is a WdWordDialog constant that identifies the dialog box, to return a single Dialog object.

The WdWordDialog constants are formed from the prefix "wdDialog" followed by the name of the menu and the dialog box. For example, the constant for the Page Setup dialog box is wdDialogFilePageSetup, and the constant for the New dialog box is wdDialogFileNew.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

CommandBarId

Returns the toolbar control id for a built-in Microsoft Office Word dialog box. Read-only.

CommandName

Returns the name of the procedure that displays the specified built-in dialog box.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

DefaultTab

Returns or sets the active tab when the specified dialog box is displayed.

Parent

Returns an object that represents the parent object of the specified object.

Type

Returns the type of built-in Microsoft Word dialog box.

Methods

Display(Object)

Displays the specified built-in Microsoft Word dialog box until either the user closes it or the specified amount of time has passed. Returns an Integer that indicates which button was clicked to close the dialog box.

Execute()

Applies the current settings of a Microsoft Word dialog box.

Show(Object)

Displays and carries out actions initiated in the specified built-in Microsoft Word dialog box. Returns an Integer that indicates which button was clicked to close the dialog box.

Update()

Updates the values shown in a built-in Microsoft Word dialog box.

Applies to