Description

Ensures that the specified item is visible within the control, scrolling the contents of the control if necessary.

Syntax

EnsureVisible( Index )

Parameters

Index - a numeric value specifying the zero-based index of the item to scroll into view.

Remarks

You can use this method to ensure that a specific item is visible within the control. When performing validation on the items in a control, you can call the EnsureVisible method to ensure that an item that failed validation is displayed in the control to allow the user to perform changes on the item. If the item that you want to ensure is visible is located above the viewable region of the control, calling the EnsureVisible method will scroll the contents of the control until it is the first item in the viewable area of the control. If the item is below the viewable region of the control, calling the EnsureVisible method will scroll the contents of the control until the item is the last item in the viewable area of the control.

See Also

Applies To: ListView


The CHM file was converted to HTML by chm2web software.