HeaderPane
Main
Hide

SftTree/NET 3.0 - Tree Control for Windows Forms

Share Link
Print

Children Property, ItemClass Class

Returns the dependent items of this item.

Class: ItemClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public ItemCollectionClass Children { get; }
Public ReadOnly Property Children As ItemCollectionClass

Value

The collection of dependents or null/Nothing if this item doesn't have any dependents.

Comments

Returns the dependent items of this item.

Child items (or dependents) can be added using the methods exposed by the ItemClass class, such as ItemClass.Add and ItemClass.InsertAfter or the ItemCollectionClass class, such as ItemCollectionClass.Add.

Once an item has been added, parts (such as instances of the TextPartClass) can be added to the cell.

The ItemClass.RemoveChildren method can be used to remove an item's dependents.

If many items are added, the SoftelvdmUserControl.Initializing property can be used to indicate a mass-update, which is significantly faster.

See Also ItemClass Class | Classes | SftTree/NET 3.0