SftTree/OCX 7.0

SftTree.MoveItems Method

Softel vdm, Inc.

Moves items to a new position in the tree control.

Deprecated - Provided for compatibility with earlier versions only - Use Items.Move instead

Syntax       

VB.NET

CountMoved = object.MoveItems(ByVal FromIndex As Integer, ByVal Count As Integer, ByVal ToIndex As Integer)  As Integer

VB

CountMoved = object.MoveItems(ByVal FromIndex As Long, ByVal Count As Long, ByVal ToIndex As Long)  As Long

C#.NET

int CountMoved = object.MoveItems(int FromIndex, int Count, int ToIndex);

VC++

long CountMoved = object->MoveItems(long FromIndex, long Count, long ToIndex);

C

HRESULT object->raw_MoveItems(long FromIndex, long Count, long ToIndex, long* CountMoved);

Delphi

CountMoved := object.MoveItems(FromIndex : Integer; Count : Integer; ToIndex : Integer)   : Integer;

object

A SftTree object.

FromIndex

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

Count

The number of items to be moved.

ToIndex

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

CountMoved

Returns the number of items moved.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Items.Move instead

The MoveItems method moves items to a new position in the tree control.

The MoveItems 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 ToIndex cannot be inside the group of items to be moved.

Items can be copied using the Items.Copy method.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com