Type | Description | |||
Group as Variant | A Long expression that specifies the index of the group to be scrolled so it fits the control's client area. The Index property specifies the index of the group being scrolled. | |||
Item as Variant | A Long expression that specifies the index of the item in the group to be scrolled so it fits the control's client area. The Index property specifies the index of the item being scrolled. | |||
Force as Variant |
A Boolean expression that specifies whether the control expands the group, so the item is visible, or whether the a new shortcut is selected so the group becomes visible. The Force parameter does NOT change the Visible property of the item. By default, the Force parameter is True, if missing. |
The following VB sample adds a new item to the last group, and ensures that the newly item is visible:
With ExplorerBar1 .BeginUpdate .EnsureVisible .Groups.Count - 1, .Groups(.Groups.Count - 1).AddItem("new item").Index .EndUpdate End With