Skip to content

InsertChildItem Method

Description

The InsertChildItem method is used to insert a new PropertyGridItem at a specific position within a collection of items.

Syntax

Public Function InsertChildItem( _
    ByVal [Index](#) As Integer, _
    ByVal [Type](#) As [PropertyItemType](XtremePropertyGrid~Enumerations~PropertyItemType_EN.md), _
    ByVal [Title](#) As String, _
    ByVal [Value](#) As Variant _
) As [PropertyGridItem](XtremePropertyGrid~PropertyGridItem.md)

Parameters

Return Type

Pointer to the item at the specified index that was inserted into the collection of items.

Remarks

The InsertChildItem method creates a new PropertyGridItem and inserts it at the specified Index in the collection of items. Items can be added to the Categories collection of items or to Child Items collection of items as shown below. Items added to the Categories collection will be used as categories. Items added to a category's collection of child items will be displayed in the category that they are added to.

Child Items

See Also

Example

Adding Items to the Property Grid


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.