Skip to content

Insert Method

Description

Inserts a new TaskPanelGroupItem into the TaskPanelGroup's collection of items.

Syntax

Public Function Insert( _
    ByVal [Index](#) As Long, _
    ByVal [Id](#) As Long, _
    ByVal [Caption](#) As String, _
    ByVal [Type](#) As [XTPTaskPanelItemType](XtremeTaskPanel~Enumerations~XTPTaskPanelItemType_EN.md), _
    Optional ByVal [IconIndex](#) As Variant _
) As [TaskPanelGroupItem](XtremeTaskPanel~TaskPanelGroupItem.md)

Parameters

  • Index: Position in the TaskPanelGroup's collection of items to insert the new item.
  • Id: Identifier of the group item to be added.
  • Caption: Caption of the item to be added.
  • Type: Type of the item to be added.
Value Description
xtpTaskItemTypeLink Task panel item is a link.
xtpTaskItemTypeText Task panel item is plain text.
xtpTaskItemTypeControl Task panel item is a control such as a combobox or textbox.
  • IconIndex: Icon index of the item to be added.

Return Type

Reference to the new TaskPanelGroupItem added.

See Also


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