FileNameEditor.InitializeDialog(OpenFileDialog) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立檔案對話框時初始化。
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 選擇檔案名稱。
備註
此方法會將對話框配置為通用檔案過濾器及標題。
給繼承者的注意事項
你可以覆寫這個方法來自訂對話框的初始化。