ArcGIS Pro 2.7 API Reference Guide
Insert Method (Gallery)

ArcGIS.Desktop.Framework.Contracts Namespace > Gallery Class : Insert Method
The zero-based index at which item should be inserted.
The item being added to the gallery.
Inserts an element into the collection at the specified index.
Syntax
protected void Insert( 
   int index,
   object item
)
Protected Sub Insert( _
   ByVal index As Integer, _
   ByVal item As Object _
) 

Parameters

index
The zero-based index at which item should be inserted.
item
The item being added to the gallery.
Remarks

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 10, Windows 8.1

See Also

Reference

Gallery Class
Gallery Members