Table of Contents

Method SetTestItemsWithColumns

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetTestItemsWithColumns(StdTreeView, int)

Adds a specified number of test items to the provided tree view and initializes two columns, 'Name' and 'Data', for each item.

public static void SetTestItemsWithColumns(StdTreeView owner, int count)

Parameters

owner StdTreeView

The tree view control that manages the columns and items to which test items will be added.

count int

The number of test items to create and add to the tree view.

Remarks

This method clears any existing columns in the tree view and creates two new columns: 'Name' and 'Data'. Each test item is assigned a unique identifier and may include child items. Updates to the tree view are batched for improved performance.