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
Returns the index of the item.
Class: ItemClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public int VisibleIndex { get; }
Public ReadOnly Property VisibleIndex As Integer
The index of the item or -1 if this item is not visible.
Returns the index of the item.
This is normally only used internally by the control. A visible item count is used with scrolling operations. Scroll bar ranges are based on visible items only.
sftTree1.Initializing = false; } // ItemClick event private void sftTree1_ItemClick(object sender, ItemClickEventArgs e) { Debug.Write("** ItemClick"); int itemIndex = -1; if (e.Item != null) itemIndex = e.Item.VisibleIndex; if (itemIndex >= 0) Debug.Write(" Row " + itemIndex.ToString()); int colIndex = -1; if (e.Cell != null) colIndex = e.Cell.ColumnIndex; if (colIndex >= 0) Debug.Write(" Column " + colIndex.ToString());
sftTree1.RecalcHorizontalExtent() sftTree1.Initializing = False End Sub ' ItemClick event Private Sub sftTree1_ItemClick(ByVal sender As Object, ByVal e As Softelvdm.SftTreeNET.ItemClickEventArgs) Handles sftTree1.ItemClick Debug.Write("** ItemClick") Dim itemIndex As Integer = -1 If Not e.Item Is Nothing Then itemIndex = e.Item.VisibleIndex If itemIndex >= 0 Then Debug.Write(" Row " & itemIndex.ToString()) End If Dim colIndex As Integer = -1 If Not e.Cell Is Nothing Then colIndex = e.Cell.ColumnIndex If colIndex >= 0 Then Debug.Write(" Column " + colIndex.ToString())
See Also ItemClass Class | Classes | SftTree/NET 2.0