FileNameEditor.InitializeDialog(OpenFileDialog) 方法

定義

建立檔案對話框時初始化。

protected:
 virtual void InitializeDialog(System::Windows::Forms::OpenFileDialog ^ openFileDialog);
protected virtual void InitializeDialog(System.Windows.Forms.OpenFileDialog openFileDialog);
abstract member InitializeDialog : System.Windows.Forms.OpenFileDialog -> unit
override this.InitializeDialog : System.Windows.Forms.OpenFileDialog -> unit
Protected Overridable Sub InitializeDialog (openFileDialog As OpenFileDialog)

參數

openFileDialog
OpenFileDialog

用來 OpenFileDialog 選擇檔案名稱。

備註

此方法會將對話框配置為通用檔案過濾器及標題。

給繼承者的注意事項

你可以覆寫這個方法來自訂對話框的初始化。

適用於

另請參閱