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.Copy method to define how the item is copied.
Class: (none)
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public enum CopyStyleEnum;
Public Enum CopyStyleEnum
Name | Description |
---|---|
BeforeTargetAsSibling | The new item is inserted before the target item as the target item's sibling. |
AfterTargetAsSibling | The new item is inserted after the target item as the target item's sibling. |
TargetAsParentInsertFirst | The new item is added as the target item's first child item. |
TargetAsParentAdd | The new item is added as the target item's last child item. |
Used with the ItemClass.Copy method to define how the item is copied.
if (e.Effect == DragDropEffects.Move) { try { newItem = originalItem.Move(targetItem, MoveStyleEnum.TargetAsParentInsertFirst); } catch (Exception exc) { MessageBox.Show(exc.Message); } } else { try { newItem = originalItem.Copy(targetItem, CopyStyleEnum.TargetAsParentInsertFirst, true); } catch (Exception exc) { MessageBox.Show(exc.Message); } } if (newItem != null) { sftTree1.Columns.MakeOptimal(0, false); newItem.ScrollIntoView();
If e.Effect = DragDropEffects.Move Then Try newItem = originalItem.Move(targetItem, MoveStyleEnum.TargetAsParentInsertFirst) Catch exc As Exception MessageBox.Show(exc.Message) End Try Else Try newItem = originalItem.Copy(targetItem, CopyStyleEnum.TargetAsParentInsertFirst, True) Catch exc As Exception MessageBox.Show(exc.Message) End Try End If If Not newItem Is Nothing Then SftTree1.Columns.MakeOptimal(0, False) newItem.ScrollIntoView()
See Also | Classes | SftTree/NET 2.0