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
Defines application-specific data.
Class: CellBaseClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
public object TagObject { get; set; }
Public Property TagObject As Object
The first object in the CellBaseClass.TagObjects property.
The default value is null/Nothing.
Defines application-specific data.
The TagObject property accesses the first object in the CellBaseClass.TagObjects property. It is available to simplify access when applications use only one object per cell.
The GenericPartClass.TagString and GenericPartClass.TagObject properties can be used to store application-specific data with each part (within a cell).
cell.Image = img; // add an image to a random column header cell.SortIndicatorPosition = SortIndicatorPositionEnum.Default; } sftTree1.ItemClick += new SftTree.ItemClickEventHandler(sftTree1_ItemClick); sftTree1.ItemDoubleClick += new SftTree.ItemDoubleClickEventHandler(sftTree1_ItemDoubleClick); // Add a few items ItemClass item = sftTree1.ItemCollection.Add(new string [] { "Text 1", "Data 4", "44", "31" } ); item.Cells[2].TagObject = (long) 44; // we use the actual number for sorting, not the string item.Cells[3].TagObject = (long) 31; item = sftTree1.ItemCollection.Add(new string[] { "Text 2", "Data 2", "22", "28" }); item.Cells[2].TagObject = (long) 22; // we use the actual number for sorting, not the string item.Cells[3].TagObject = (long) 28; item.Cells[3].Image = img; // add an image to a random cell item = sftTree1.ItemCollection.Add(new string[] { "Text 3", "Data 43", "11", "233" }); item.Cells[2].TagObject = (long) 11; // we use the actual number for sorting, not the string
Dim cell As CellClass = sftTree1.Headers(0, c) ' access each header cell cell.Text = "Column " & c.ToString() ' set the title If c = 1 Then cell.Image = img ' add an image to a random column header cell.SortIndicatorPosition = SortIndicatorPositionEnum.Default Next ' Add a few items Dim item As ItemClass = sftTree1.ItemCollection.Add(New String() {"Text 1", "Data 4", "44", "31"}) item.Cells(2).TagObject = 44 ' we use the actual number for sorting, not the string item.Cells(3).TagObject = 31 item = sftTree1.ItemCollection.Add(New String() {"Text 2", "Data 2", "22", "28"}) item.Cells(2).TagObject = 22 ' we use the actual number for sorting, not the string item.Cells(3).TagObject = 28 item.Cells(3).Image = img ' add an image to a random cell item = sftTree1.ItemCollection.Add(New String() {"Text 3", "Data 43", "11", "233"}) item.Cells(2).TagObject = 11 ' we use the actual number for sorting, not the string
See Also CellBaseClass Class | Classes | SftTree/NET 2.0