Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
TopIndex Property
See Also 
Leadtools.WinForms Namespace > RasterImageList Class : TopIndex Property



Gets or sets the index of the first visible item in the control.

Syntax

Visual Basic (Declaration) 
<BrowsableAttribute(False)>
Public Property TopIndex As Integer
Visual Basic (Usage)Copy Code
Dim instance As RasterImageList
Dim value As Integer
 
instance.TopIndex = value
 
value = instance.TopIndex
C# 
[BrowsableAttribute(false)]
public int TopIndex {get; set;}
C++/CLI 
[BrowsableAttribute(false)]
public:
property int TopIndex {
   int get();
   void set (int value);
}

Return Value

The index of the first visible item in the control.

Example

For an example, refer to ScrollStyle

Remarks

Initially, the item with the index position of zero (0) is at the top of the RasterImageList control. If the RasterImageList control contents are scrolled, a different item can be at the top of the control. You can use this property to determine which item is visible at the top of the RasterImageList control. To position a specific item in the visible region of the control, set its index to the TopIndex property.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also