ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Catalog Namespace / OpenItemDialog Class / MultiSelect Property
Example

In This Topic
    MultiSelect Property
    In This Topic
    Gets and sets if the Browse dialog box will support selecting many items.
    Syntax
    Public Property MultiSelect As Boolean
    public bool MultiSelect {get; set;}
    Remarks
    By default, you can only select a single item in the Browse dialog box.
    Example
    Show OpenItemDialog
    {
      OpenItemDialog addToProjectDialog = new()
      {
        Title = "Add To Project",
        InitialLocation = @"C:\Data\NewYork\Counties\Maps",
        MultiSelect = true,
        Filter = ItemFilters.Composite_Maps_Import
      };
    
      bool? ok = addToProjectDialog.ShowDialog();
    
      if (ok == true)
      {
        IEnumerable<Item> selectedItems = addToProjectDialog.Items;
        foreach (Item selectedItem in selectedItems)
          MapFactory.Instance.CreateMapFromItem(selectedItem);
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also