CommonDialog 类

定义

用于显示常用 Win32 对话框的抽象基类。An abstract base class for displaying common Win32 dialogs.

public ref class CommonDialog abstract
public abstract class CommonDialog
type CommonDialog = class
Public MustInherit Class CommonDialog
继承
CommonDialog
派生

构造函数

CommonDialog()

在由派生类的构造函数调用时,提供基类值的初始化。Provides initialization for base class values when called by the constructor of a derived class.

属性

Tag

获取或设置与对话框关联的对象。Gets or sets an object associated with the dialog. 这将提供向对话框附加任意对象的能力。This provides the ability to attach an arbitrary object to the dialog.

方法

CheckPermissionsToShowDialog()

确定是否有足够的权限来显示对话框。Determines whether sufficient permissions for displaying a dialog exist.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
HookProc(IntPtr, Int32, IntPtr, IntPtr)

定义要重写的通用对话框挂钩过程,以便向通用对话框添加特定功能。Defines the common dialog box hook procedure that is overridden to add specific functionality to a common dialog box.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Reset()

在派生类中进行重写时,将通用对话框的属性重置为其默认值。When overridden in a derived class, resets the properties of a common dialog to their default values.

RunDialog(IntPtr)

在派生类中进行重写时,将被调用以显示 Win32Win32 通用对话框的特定类型。When overridden in a derived class, is called to display a particular type of Win32Win32 common dialog.

ShowDialog()

显示通用对话框。Displays a common dialog.

ShowDialog(Window)

显示通用对话框。Displays a common dialog.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于