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
Used with the ItemClass.ExpandCollapseButton property to define the expand/collapse button style.
Class: (none)
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public enum ExpandCollapseButtonStyleEnum;
Public Enum ExpandCollapseButtonStyleEnum
Name | Description |
---|---|
Conditional | The expand/collapse button is only shown if the item has dependents. |
Show | The expand/collapse button is always shown even if the item does not have dependents. An application can dynamically add dependents when the ItemClick event occurs. |
Hide | Never show the expand/collapse button even if the item has dependents. |
Used with the ItemClass.ExpandCollapseButton property to define the expand/collapse button style.
using Softelvdm.Controls;
namespace ExploreAssembly
{
public partial class Form1 : Form
{
// This example implements dynamically populating the tree control ("load as you go").
// As items are added, they are marked as expandable (ExpandCollapseButton =
// ExpandCollapseButtonStyleEnum.Show, even though no child items are added (yet).
// Once the user clicks on the expand/collapse button, the child items are added.
// The data displayed is created by loading an assembly and displaying defined
// types.
public Form1()
{
InitializeComponent();
}
LoadAssembly(asm)
End Sub
Private Sub ListInfo(ByVal itemCollection As ItemCollectionClass, ByVal a As Assembly)
Dim item As ItemClass = itemCollection.Add("Custom Attributes")
item.TagObjects = a.GetCustomAttributes(True)
If item.TagObjects.Length > 0 Then
item.ExpandCollapseButton = ExpandCollapseButtonStyleEnum.Show
Else
item.ExpandCollapseButton = ExpandCollapseButtonStyleEnum.Hide
End If
item = itemCollection.Add("Exported Types")
item.TagObjects = a.GetExportedTypes()
If item.TagObjects.Length > 0 Then
See Also | Classes | SftTree/NET 2.0