LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
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);
}

Property 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 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also