MQWidget.OpenFileDialog class

ファイルを開くダイアログ。

継承クラス: MQWidget.FileDialogBase

Property

get set Type Name Description
o o bool fileMustExist 存在するファイルのみの選択可否
o o bool multiSelect 複数選択

Method

Member Description
OpenFileDialog コンストラクタ。
execute ファイルダイアログを開きます。
getFileNamesCount 選択されたファイルの数を取得します
getFileNames 複数選択されたファイルを取得します。

OpenFileDialog(parent)

コンストラクタ。

引数:
MQWidget.WindowBase parent - 親ウィンドウ

execute

ファイルダイアログを開きます。

戻り値:
bool - ファイルが選択されたか

getFileNamesCount

選択されたファイルの数を取得します

戻り値:
int - 複数選択されたファイルの数

getFileNames(index)

複数選択されたファイルを取得します。

引数:
int index - ファイルのインデックス
戻り値:
string - ファイル名