HeaderPane
Main
Hide

SftTree/NET 3.0 - Tree Control for Windows Forms

Share Link
Print

Add Method, ItemClass Class

Adds a new dependent to the current item. The new item is added as the last dependent.

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

Syntax

public ItemClass Add();
public ItemClass Add( string CellTexts );
public ItemClass Add( string CellText );
Public Function Add() As ItemClass
Public Function Add( ByVal CellTexts As String() ) As ItemClass
Public Function Add( ByVal CellText As String ) As ItemClass

Parameters

CellTexts

Defines an array of strings added as cell text to the item's cells.

CellText

Defines a string added as cell text to the item's first cell.

Return Value

The new item.

Comments

Adds a new dependent to the current item. The new item is added as the last dependent.

The strings defined by CellTexts are added to the cells of the new item. Each cell of the new item receives one string as a part (TextPartClass). An application can add additional parts to the cells.

The string defined by CellText is added to the first cell of the new item. The cell receives the string as a part (TextPartClass). An application can add additional parts to the cells.

See Also ItemClass Class | Classes | SftTree/NET 3.0