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.Move method to define how the item is moved.
Class: (none)
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public enum MoveStyleEnum;
Public Enum MoveStyleEnum
Name | Description |
---|---|
BeforeTargetAsSibling | The item is inserted before the target item as the target item's sibling. If the item and the target item are the same, the Move method has no effect. The Move method's ItemTarget parameter is required. The target item cannot be a child item of the item to be moved. |
AfterTargetAsSibling | The item is inserted after the target item as the target item's sibling. If the item and the target item are the same, the Move method has no effect. The Move method's ItemTarget parameter is required. The target item cannot be a child item of the item to be moved. |
TargetAsParentInsertFirst | The item is added as the target item's first child item. If the item and the target item are the same, the Move method has no effect. The Move method's ItemTarget parameter is required. The target item cannot be a child item of the item to be moved. |
TargetAsParentAdd | The item is added as the target item's last child item. If the item and the target item are the same, the Move method has no effect. The Move method's ItemTarget parameter is required. The target item cannot be a child item of the item to be moved. |
UpHierarchy | The item is moved up the hierarchy by one position and becomes the sibling item of the visible item that precedes it. If the item is already the first item in the tree control, the Move method has no effect. The Move method's ItemTarget parameter must be set to null/Nothing. |
DownHierarchy | The item is moved down the hierarchy by one position. If the following, visible item is expanded, it becomes that item's first child item. If the following, visible item is collapsed, it becomes that item's next sibling item. If the item is already the last item in the tree control, the Move method has no effect. The Move method's ItemTarget parameter must be set to null/Nothing. |
UpSibling | The item is moved up by one position and becomes the previous sibling item's previous sibling. If the item is already the first sibling, the Move method has no effect. The Move method's ItemTarget parameter must be set to null/Nothing. |
DownSibling | The item is moved down by one position and becomes the next sibling item's next sibling. If the item is already the last sibling, the Move method has no effect. The Move method's ItemTarget parameter must be set to null/Nothing. |
Used with the ItemClass.Move method to define how the item is moved.
Debug.Write("sftTree1_DragDrop "); DumpValues(e); if (sftTree1.DropTarget != null && e.Data.GetDataPresent(typeof(ItemClass))) { ItemClass originalItem = (ItemClass)e.Data.GetData(typeof(ItemClass)); ItemClass targetItem = (ItemClass)sftTree1.DropTarget; ItemClass newItem = null; 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) {
Debug.Write("sftTree1_DragDrop ") DumpValues(e) If Not SftTree1.DropTarget Is Nothing And e.Data.GetDataPresent(GetType(ItemClass)) Then Dim originalItem As ItemClass = e.Data.GetData(GetType(ItemClass)) Dim targetItem As ItemClass = SftTree1.DropTarget Dim newItem As ItemClass = Nothing 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
See Also | Classes | SftTree/NET 2.0