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 the specified part to the parts collection.
Class: PartsCollectionClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public int Add( GenericPartClass Part );
Public Function Add( ByVal Part As GenericPartClass ) As Integer
Part
Defines the new part to append to the parts collection.
The zero-based index of the newly added part.
Adds the specified part to the parts collection.
sftTree1.RecalcHorizontalExtent(); sftTree1.Initializing = false; } private ItemClass AddCategory(string Category) { ItemClass item = sftTree1.ItemCollection.Add(); 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];
sftTree1.RecalcHorizontalExtent() sftTree1.Initializing = False End Sub Private Function AddCategory(ByVal Category As String) As ItemClass Dim item As ItemClass = sftTree1.ItemCollection.Add() Dim cell As CellClass = 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 End Function Private Sub AddItem(ByVal cat As ItemClass, ByVal img As Image, ByVal ItemText As String) Dim item As ItemClass = cat.Add()
See Also PartsCollectionClass Class | Classes | SftTree/NET 2.0