|
|
|
SftTreeItems.Move Method |
Moves items to a new position in the tree control.
Syntax
VB.NET |
CountMoved = object.Move(ByVal FromIndex As Integer, ByVal Count As Integer, ByVal InsertIndex As Integer) As Integer |
||
VB |
CountMoved = object.Move(ByVal FromIndex As Long, ByVal Count As Long, ByVal InsertIndex As Long) As Long |
||
C#.NET |
int CountMoved = object.Move(int FromIndex, int Count, int InsertIndex); |
||
VC++ |
long CountMoved = object->Move(long FromIndex, long Count, long InsertIndex); |
||
C |
HRESULT object->raw_Move(long FromIndex, long Count, long InsertIndex, long* CountMoved); |
||
Delphi |
CountMoved := object.Move(FromIndex : Integer; Count : Integer; InsertIndex : Integer) : Integer; |
object
A SftTreeItems object.
FromIndex
The zero-based index of the first item to be moved.
Count
The number of items to be moved.
InsertIndex
The zero-based index of the position where the items are to be inserted. If InsertIndex is -1, the items will be moved to the end of the list.
CountMoved
Returns the number of items moved.
Comments
The Move method moves items to a new position in the tree control.
The Move method copies all item attributes, including cell text, graphics, level, row header contents, etc. All application specific data is moved (such as the Item.Data, etc.). The CopyItemDataString property has no effect.
The target item InsertIndex cannot be inside the group of items to be moved.
Items can also be moved using the Items.MoveAfter method.
Items can be copied using the Items.Copy method.
See Also SftTreeItems Object | Object Hierarchy