System.Windows.Forms.ListBox.TopIndex Property

Gets or sets the index of the first visible item in the System.Windows.Forms.ListBox.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public int TopIndex { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Initially, the item with the index position zero (0) is at the top of the visible region of the System.Windows.Forms.ListBox. If the contents of the System.Windows.Forms.ListBox have been scrolled, another item might be at the top of the control's display area. You can use this property to obtain the index within the System.Windows.Forms.ListBox.ObjectCollection for the System.Windows.Forms.ListBox of the item that is currently positioned at the top of the visible region of the control. You can also use this property to position an item in the list at the top of the visible region of the control.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0