|
|
|
SftBoxItems.Move Method |
Moves an item.
Syntax
VB.NET |
ItemIndex = object.Move(ByVal FromIndex As Integer, ByVal ToIndex As Integer) As Integer |
||
VB |
ItemIndex = object.Move(ByVal FromIndex As Long, ByVal ToIndex As Long) As Long |
||
C#.NET |
int ItemIndex = object.Move(int FromIndex, int ToIndex); |
||
VC++ |
long ItemIndex = object->Move(long FromIndex, long ToIndex); |
||
C |
HRESULT object->raw_Move(long FromIndex, long ToIndex, long* ItemIndex); |
||
Delphi |
ItemIndex := object.Move(FromIndex : Integer; ToIndex : Integer) : Integer; |
object
A SftBoxItems object.
FromIndex
The zero-based index of the item to be moved.
ToIndex
The zero-based index of the position where the item will be inserted. Specify -1 to move the item to the end of the list.
ItemIndex
Returns the zero-based index of the item after being moved to the new location.
Comments
The Move method moves an item.
An item can also be moved using the Items.MoveAfter method.
An item can be copied using the Items.Copy method.
The drop down portion is automatically hidden when the combo box contents are changed using this method. The DropDown.SuppressOn method can be used to suppress hiding the drop down portion when adding/inserting items.