Table of Contents

Interface IVListBoxHandler

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains methods and properties which allow to work with virtual list box control.

public interface IVListBoxHandler : IListBoxHandler, IControlHandler, IDisposableObject, IDisposable

Properties

HScrollBarVisible

Gets or sets whether horizontal scrollbar is visible in the control.

ItemsCount

Gets or sets items count.

SelectionMode

Gets or sets selection mode.

VScrollBarVisible

Gets or sets whether vertical scrollbar is visible in the control.

Methods

ClearItems()

Clears items.

ClearSelected()

Clears selected items.

DoSetCurrent(int)

Sets current item index.

GetFirstSelected()

Gets first selected item.

GetItemRect(int)

Returns the rectangle occupied by this item in physical coordinates (dips). If the item is not currently visible, returns an empty rectangle.

GetNextSelected()

Gets next selected item.

GetSelectedCount()

Gets number of selected items.

GetSelection()

Gets selected item index.

GetVisibleBegin()

Gets index of the first visible item.

GetVisibleEnd()

Gets index of the last visible item.

IsCurrent(int)

Gets whether or not the specified item is current.

IsSelected(int)

Gets whether item with the specified index is selected.

IsVisible(int)

Gets whether item with the specified index is visible.

ItemHitTest(PointD)

Gets hit text information for the specified point inside the control.

RefreshRow(int)

Triggers a refresh for just the given row's area of the control if it is visible.

RefreshRows(int, int)

Triggers a refresh for the area between the specified range of rows given (inclusively).

ScrollRowPages(int)

Scroll by the specified number of pages which may be positive (to scroll down) or negative (to scroll up).

ScrollRows(int)

Scroll by the specified number of rows which may be positive (to scroll down) or negative (to scroll up).

SetSelected(int, bool)

Sets whether or not item with the specified index is selected.

SetSelection(int)

Sets selected item index.

SetSelectionBackground(Color)

Sets selected items bacckground color.