SftTree/OCX 7.5 - ActiveX Tree Control


Copy Method, SftTreeItems Object

Copies items to a new position in the tree control.


VB.NETCountCopied = object.Copy(ByVal FromIndex As Integer, ByVal Count As Integer, ByVal InsertIndex As Integer) As Integer
VBCountCopied = object.Copy(ByVal FromIndex As Long, ByVal Count As Long, ByVal InsertIndex As Long) As Long
C#.NETint CountCopied = object.Copy(int FromIndex, int Count, int InsertIndex);
VC++long CountCopied = object->Copy(long FromIndex, long Count, long InsertIndex);
CHRESULT object->raw_Copy(long FromIndex, long Count, long InsertIndex, long* CountCopied);


A SftTreeItems object.


The zero-based index of the first item to be copied.


The number of items to be copied.


The zero-based index of the position where the items are to be inserted. If InsertIndex is -1, the items will be added at the end of the list.


Returns the number of items copied.


The Copy method copies items to a new position in the tree control.

The Copy method copies all item attributes, including cell text, graphics, level, row header contents, etc. Also copied are all data attributes such as Cell.Data, Cell.DataString, Item.Data, etc. If these values should remain unique in an application, they have to be explicitly changed after copying an item. The CopyItemDataString property has no effect.

The target InsertIndex cannot be inside the group of items to be copied.

Items can also be copied using the Items.CopyAfter method.

Items can be moved using the Items.Move and Items.MoveAfter methods.

See Also SftTreeItems Object | Object Hierarchy

Last Updated 08/13/2020 - (email)
© 2023 Softel vdm, Inc.