SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
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
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
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.
The new item.
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.
CellClass cell = item.Cells[0]; cell.Appearance = BackgroundAppearanceEnum.ThemedSystemHeaderNeverPressed; cell.Parts.Add(new ImagePartClass(m_PlusImage)); cell.Parts.Add(new TextPartClass(Category)); item.TagString = "This is a tooltip explaining " + Category; return item; } private void AddItem(ItemClass cat, Image img, string ItemText) { ItemClass item = cat.Add(); CellClass cell = item.Cells[0]; cell.Parts.Add(new ImagePartClass(img)); cell.Parts.Add(new TextPartClass(ItemText)); item.TagString = "This is a tooltip for an item labeled " + ItemText; } private void ClickCategory(ItemClass item)
cell.Appearance = BackgroundAppearanceEnum.ThemedSystemHeaderNeverPressed cell.Parts.Add(New ImagePartClass(m_PlusImage)) cell.Parts.Add(New TextPartClass(Category)) item.TagString = "This is a tooltip explaining " & Category Return item End Function Private Sub AddItem(ByVal cat As ItemClass, ByVal img As Image, ByVal ItemText As String) Dim item As ItemClass = cat.Add() Dim cell As CellClass = item.Cells(0) cell.Parts.Add(New ImagePartClass(img)) cell.Parts.Add(New TextPartClass(ItemText)) item.TagString = "This is a tooltip for an item labeled " & ItemText End Sub Private Sub ClickCategory(ByVal item As ItemClass)
See Also ItemClass Class | Classes | SftTree/NET 2.0