|
|
|
SftBoxItems.CopyAfter Method |
Copies items to a new position in the control.
Syntax
VB.NET |
ItemIndex = object.CopyAfter(ByVal FromIndex As Integer, ByVal AfterIndex As Integer) As Integer |
||
VB |
ItemIndex = object.CopyAfter(ByVal FromIndex As Long, ByVal AfterIndex As Long) As Long |
||
C#.NET |
int ItemIndex = object.CopyAfter(int FromIndex, int AfterIndex); |
||
VC++ |
long ItemIndex = object->CopyAfter(long FromIndex, long AfterIndex); |
||
C |
HRESULT object->raw_CopyAfter(long FromIndex, long AfterIndex, long* ItemIndex); |
||
Delphi |
ItemIndex := object.CopyAfter(FromIndex : Integer; AfterIndex : Integer) : Integer; |
object
A SftBoxItems object.
FromIndex
The zero-based index of the item to be copied.
AfterIndex
The zero-based index of the position after which the new, copied item will be inserted. Specify -1 to add the new item at the end of the list.
ItemIndex
Returns the zero-based index of the new item after it has been copied to the new position.
Comments
The CopyAfter method copies items to a new position in the control.
The CopyAfter method copies all item attributes.
The target AfterIndex cannot be inside the group of items to be copied.
Items can also be copied using the Items.Copy method. An item can be moved using the Items.Move 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.