Dialog 接口

定义

代表内置的 Microsoft Excel 对话框。

public interface class Dialog
[System.Runtime.InteropServices.Guid("0002087A-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface Dialog
Public Interface Dialog
属性

注解

Dialog 对象是 集合的成员DialogsDialogs 集合包含 Microsoft Excel 中的所有内置对话框。 不能在集合中新建或添加内置对话框。 对 Dialog 对象唯一有用的操作是将其与 方法一起使用 Show(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) 以显示相应的对话框。

使用 Dialogs (index) (其中 index 是标识对话框的内置常量)返回单个 Dialog 对象。

Microsoft Excel 包含许多内置对话框的内置常量。 每个常量的前缀均为“xlDialog”,随后即为对话框的名称。 例如,“应用名称”对话框常量为 xlDialogApplyNames,“查找文件”对话框常量为 xlDialogFindFile。 这些常量是枚举类型的成员 XlBuiltInDialog

属性

Application

返回一个 Application 对象,该对象代表 Microsoft Excel 应用程序。

Creator

返回一个 32 位整数,该整数指示在其中创建了此对象的应用程序。

Parent

返回指定对象的父对象。

方法

Show(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)

显示内置对话框并等待用户输入数据。

适用于