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
Moves an item to a new position in the tree control.
Deprecated - Provided for compatibility with earlier versions only - Use Items.Move instead
VB.NET | NewIndex = object.MoveItem(ByVal FromIndex As Integer, ByVal ToIndex As Integer) As Integer |
VB | NewIndex = object.MoveItem(ByVal FromIndex As Long, ByVal ToIndex As Long) As Long |
C#.NET | int NewIndex = object.MoveItem(int FromIndex, int ToIndex); |
VC++ | long NewIndex = object->MoveItem(long FromIndex, long ToIndex); |
C | HRESULT object->raw_MoveItem(long FromIndex, long ToIndex, long* NewIndex); |
object
FromIndex
The zero-based index of the item to be moved.
ToIndex
The zero-based index of the position where the item is to be inserted. If ToIndex is -1, the item will be added at the end of the list.
NewIndex
Returns the zero-based index of the moved item's new position.
Deprecated - Provided for compatibility with earlier versions only - Use Items.Move instead
The MoveItem method moves an item to a new position in the tree control.
The MoveItem method moves all item attributes, including cell text, graphics, level, row header contents, etc. The Item.DataString property may not be moved, depending on the CopyItemDataString property.
A group of items can be moved using the Items.Move method. Items can be copied using the Items.Copy method.
The MoveItem method does not preserve the item ID (see Item.ID property). The Items.Move method should be used if the item id needs to be preserved.
See Also SftTree Object | Object Hierarchy