ICreate.Controls.Bars Send comments on this topic.
SelectItem Method
See Also 
ICreate.Controls.Bars Namespace > SideBar Class : SelectItem Method






itemIndex
The index of the SideBarItem, in the Items collection, that is to be the SelectedItem.
Makes the SideBarItem with the specified index in the Items collection, the SelectedItem.

Syntax

Visual Basic (Declaration) 
Public Sub SelectItem( _
   ByVal itemIndex As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As SideBar
Dim itemIndex As Integer
 
instance.SelectItem(itemIndex)
C# 
public void SelectItem( 
   int itemIndex
)
Delphi 
public procedure SelectItem( 
    itemIndex: Integer
); 
JScript 
public function SelectItem( 
   itemIndex : int
);
Managed Extensions for C++ 
public: void SelectItem( 
   int itemIndex
) 
C++/CLI 
public:
void SelectItem( 
   int itemIndex
) 

Parameters

itemIndex
The index of the SideBarItem, in the Items collection, that is to be the SelectedItem.

Remarks

This method is useful if you have the index of the SideBarItem in the Items collection. If you however have a reference to a SideBarItem, then this reference can be assigned to the SelectedItem property in order to select the SideBarItem.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also