IDatabaseTree.AddItem Method

Adds an item with the specified code to the tree.
Function AddItem( _ 
ByVal code As String
) As IDatabaseTreeItem
This language is not supported or no code example is available.
IDatabaseTreeItem AddItem( 
string code 
)
This language is not supported or no code example is available.

Parameters

code
string

The code of the newly added item.

Return Value

IDatabaseTreeItem

A newly added item.

Exception type Condition

ArgumentException

An item with the specified code already exists.

Remarks
 
The method returns a new item for which you can then set its text. The tree structure is automatically rebuilt to reflect the new item.
Version
 
Available since QDV 7.14.501.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition