Interface IListBoxHandler
Defines the platform-specific handler contract for list box controls. Implementations provide selection, item management and hit-testing behavior.
public interface IListBoxHandler
Properties
- Flags
Gets or sets the flags that define the behavior and appearance of the list box.
- HasBorder
Gets or sets a value indicating whether the list box has a visible border.
Methods
- Append(string)
Appends an item with the specified string to the end of the list box.
- Check(int, bool)
Performs a check on the specified item, with an optional flag to enable or disable the check.
- Clear()
Removes all items from the list box.
- Delete(int)
Deletes the item at the specified index.
- Deselect(int)
Deselects the item at the specified index.
- EnsureVisible(int)
Ensures that the item at the given index is visible in the viewport.
- FindString(string, bool)
Finds the index of the first item whose string representation matches the specified text.
- GetCheckedIndexesCount()
Gets the count of indexes that are currently checked.
- GetCheckedIndexesItem(int)
Retrieves the item index in the specified position inside the checked items list.
- GetCount()
Gets the number of items in the list box.
- GetCountPerPage()
Gets the number of items that are visible per page in the list box viewport.
- GetSelection()
Gets the index of the current selection.
- GetSelectionsCount()
Gets the number of currently selected items (for multi-selection list boxes).
- GetSelectionsItem(int)
Gets the index of the selected item at the specified selection order.
- GetString(int)
Gets the string representation of the item at the specified index.
- GetTopItem()
Gets the index of the topmost visible item in the list box.
- HitTest(PointD)
Performs a hit test at the specified point and returns the index of the item under that point.
- Insert(string, int)
Inserts an item at the specified position.
- IsChecked(int)
Determines whether the specified item is checked.
- IsSelected(int)
Determines whether the item at the specified index is selected.
- IsSorted()
Determines whether the items in the list box are displayed in sorted order.
- SetFirstItem(int)
Sets the specified item to be the first (top) visible item.
- SetFirstItemStr(string)
Sets the first visible item by searching for the specified string and making that item first.
- SetSelection(int)
Sets the selection to the item at the specified index.
- SetSelection(int, bool)
Updates the selection state of an item at the specified index.
- SetString(int, string)
Replaces the string representation of the item at the specified index.
- SetStringSelection(string, bool)
Selects or deselects the first item whose content matches the specified string.
- UpdateCheckedIndexes()
Updates the collection of indexes that are marked as checked.
- UpdateSelections()
Updates internal selection state. Implementations should refresh selection caches when necessary.