.NET Windows Forms in a Nutshell

FileNameEditor

System.Windows.Forms.Design (system.design.dll) class

This class provides an editor for the selection of a filename (using the common dialog). You can inherit from this class to provide file and filter extensions, and to set the dialog title.

public class FileNameEditor : System.Drawing.Design.UITypeEditor { // Public Constructors public FileNameEditor (); // Public Instance Methods public override object EditValue (System.ComponentModel.ITypeDescriptorContext context , // overrides System.Drawing.Design.UITypeEditor public override UITypeEditorEditStyle GetEditStyle ( // overrides System.Drawing.Design.UITypeEditor // Protected Instance Methods protected virtual void InitializeDialog (System.Windows.Forms.OpenFileDialog openFileDialog ); }

Hierarchy

System.Object System.Drawing.Design.UITypeEditor FileNameEditor

Категории