Moves a tab to a new position.
| VB | NewIndex = object.Move(ByVal TabIndex As Integer, ByVal InsertIndex As Integer) As Integer |
object
TabIndex
The zero-based index of the tab to be moved.
InsertIndex
The zero-based tab index of an existing tab in front of which the moved tab is to be inserted. If -1 is used, the tab is moved to the end.
NewIndex
Returns the zero-based index of the tab after it has been moved.
The Move method moves a tab to a new position.
Moving a tab also moves all tab properties and the associated controls (if a client area is present).
See Reorder Sample
' Remove the image before doing anything else
FromIndex = StartTabIndex
ToIndex = DropTabIndex
ClearImage
StartTabIndex = -1
' move the tab
If FromIndex >= 0 And ToIndex >= 0 Then
NewIndex = SftTabs1.Tabs.Move(FromIndex, ToIndex)
End If
End Sub
See Also SftTabsTabs Object | Object Hierarchy