ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Framework.Contracts Namespace / Gallery Class / CopyFrom Method
Existing collection of items to copy from.

In This Topic
    CopyFrom Method (Gallery)
    In This Topic
    Add items from an existing collection.
    Syntax
    protected void CopyFrom( 
       ICollection collection
    )
    Protected Sub CopyFrom( _
       ByVal collection As ICollection _
    ) 

    Parameters

    collection
    Existing collection of items to copy from.
    Remarks

    Automatically clears the internal collection before copying begins.

    All items added to the ItemCollection must be created on the main UI thread as these ultimately become the content of buttons added to the gallery popup control.

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also