Skip to main content
A newer version of this page is available. .

BaseListBoxControl.MakeItemVisible(Int32) Method

Makes the specified item visible on-screen if it is currently invisible.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public virtual void MakeItemVisible(
    int index
)

Parameters

Name Type Description
index Int32

An integer value representing the item’s zero-based index.

Remarks

The MakeItemVisible method scrolls the list box so that the specified item can be visible onscreen if it is currently invisible.

If the control is in single-column mode, calling the MakeItemVisible method scrolls the list box vertically to display the specified item. Note if the item’s index is less than the index of the current top visible item, the item will be the topmost visible after the method call. Otherwise, if the specified item is invisible and its index is greater than the index of the current topmost visible item, the item will be displayed at the bottom of the list box control’s client area.

If the control is in multi-column mode, calling the MakeItemVisible method scrolls the list box horizontally to display the column containing the specified item.

Note: calling the MakeItemVisible method will have no effect if the specified item is visible onscreen.

See Also