This document is archived and information here might be outdated.  Recommended version.


IGxObjectArray.Insert Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Catalog)  

IGxObjectArray.Insert Method

Inserts an object into the array before the specified index. If index is -1, the object is inserted at the end.

[Visual Basic .NET]
Public Sub Insert ( _
    ByVal index As Integer, _
    ByVal gxObject As IGxObject _
)
[C#]
public void Insert (
    int index,
    IGxObject gxObject
);

Product Availability

Available with ArcGIS Desktop.

See Also

IGxObjectArray Interface

.NET Samples

Custom Root Object (Style Gallery) (Code Files: clsGxStyleGallery clsGxStyleGalleryClass) | Custom GxObject (Code Files: GxPyFactory)