Graphisoft®

Dialog ManagerVersion: 2.0

FileDialog::GetSelectionCount

Returns the number of selected files.

USize GetSelectionCount (void) const;

Return Value

Number of selected files.

Description

Can be used during active state and also after invoke to get the number of file the user selected.

Example

    DG::FileDialog dlg (DG::FileDialog::OpenMultiFile);
    if (!dlg.Invoke ())
        return false;
    int count = dlg.GetSelectionCount ();
    for (int n = 0; n < count; n++) {
        IO::File file (dlg.GetSelectedFile (n));
    }