|
|
|
SftBoxItems.MoveAfter Method |
Moves items to a new position in the combo box control.
Syntax
VB.NET |
ItemIndex = object.MoveAfter(ByVal FromIndex As Integer, ByVal AfterIndex As Integer) As Integer |
||
VB |
ItemIndex = object.MoveAfter(ByVal FromIndex As Long, ByVal AfterIndex As Long) As Long |
||
C#.NET |
int ItemIndex = object.MoveAfter(int FromIndex, int AfterIndex); |
||
VC++ |
long ItemIndex = object->MoveAfter(long FromIndex, long AfterIndex); |
||
C |
HRESULT object->raw_MoveAfter(long FromIndex, long AfterIndex, long* ItemIndex); |
||
Delphi |
ItemIndex := object.MoveAfter(FromIndex : Integer; AfterIndex : Integer) : Integer; |
object
A SftBoxItems object.
FromIndex
The zero-based index of the item to be moved.
AfterIndex
The zero-based index of the position after which 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 MoveAfter method moves items to a new position in the combo box control.
An item can also be moved using the Items.Move 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.