Skip to main content
Version: 2025

ISalListControl

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.50 (5.0.0.0)

Provides item access, searching, and selection for SAL list controls.

public interface ISalListControl

Example:

void Populate(PPJ.Runtime.Windows.ISalListControl list)
{
list.Clear();
list.AddRange(new object[] { "Open", "Closed" });
list.SelectedIndex = list.Find("Open");
}

Properties​

Instance member AllowHtml​

Boolean: Gets or sets whether item content can be rendered as HTML.

Instance member Count​

Int32: Gets the number of items in the control.

Instance member Item(index)​

Object: Gets or replaces an item by its position.

Instance member Items​

IList: Gets the collection of items displayed by the control.

Instance member SelectedIndex​

Int32: Gets or sets the selected item's zero-based index, or -1 when no item is selected.

Instance member SelectedIndices​

Int32[]: Gets the zero-based indices of the selected items.

Instance member SelectedItem​

Object: Gets or sets the selected item, or when no item is selected.

Instance member SelectionMode​

SelectionMode: Gets or sets whether and how the control permits multiple selections.

Methods​

Instance member Add(item)​

Adds an item to the control.

ParameterTypeDescription
itemObjectThe item to add.

Returns: Int32. The zero-based index assigned to the item.

Instance member AddRange(items)​

Adds an array of items to the control.

ParameterTypeDescription
itemsObject[]The items to add, in input order; a sorted control determines their final positions.

Instance member Clear()​

Removes all items from the control.

Instance member Delete(index)​

Removes the item at the specified position.

ParameterTypeDescription
indexInt32The zero-based index to remove.

Returns: Int32. The remaining item count, or Sys.LB_Err if the index is invalid.

Instance member Find(item)​

Searches the item collection for an object.

ParameterTypeDescription
itemObjectThe object to locate.

Returns: Int32. The matching item's zero-based index, or -1 if no item matches.

Instance member FindString(text, startIndex)​

Searches for an item whose display text starts with the specified text.

ParameterTypeDescription
textStringThe text prefix to locate.
startIndexInt32The index supplied to the control's search operation; -1 requests its initial search position.

Returns: Int32. The matching item's zero-based index, or -1 when no match is found or the start index is rejected.

Instance member FindStringExact(text, startIndex)​

Searches for an item whose display text matches the specified text.

ParameterTypeDescription
textStringThe complete display text to locate.
startIndexInt32The index supplied to the control's search operation; -1 requests its initial search position.

Returns: Int32. The matching item's zero-based index, or -1 when no match is found or the start index is rejected.

Instance member Insert(index, item)​

Inserts an item at a requested position.

ParameterTypeDescription
indexInt32The zero-based insertion position, or -1 to append the item.
itemObjectThe item to insert.

Returns: Int32. The item's resulting index, or Sys.LB_Err if the position is invalid. A sorted control may choose a different index.

Instance member IsSelected(index)​

Determines whether a particular item is selected.

ParameterTypeDescription
indexInt32The zero-based item index.

Returns: Boolean. if the item is selected; otherwise, .

Instance member SetSelected(index, selected)​

Changes an item's selection state.

ParameterTypeDescription
indexInt32The zero-based item index.
selectedBooleanto select the item; to deselect it.

Instance member UpdateItem(item)​

Refreshes an item's representation on the client.

ParameterTypeDescription
itemObjectThe existing item whose rendered content has changed.

Implemented By​

NameDescription
SalComboBoxCombines a selectable item list with SAL editing, formatting, and validation behavior.
SalListBoxDisplays a selectable item list with SAL value conversion, item access, and window actions.
SalTableColumnDefines a SAL table column, its per-row value, display formatting, editor, and window actions.
VisColorComboBox
VisColorListBox
VisComboBoxBase
VisDesktopListBox
VisDirListBox
VisDirTreeListBox
VisDriveComboBox
VisDriveListBox
VisDropDownBase
VisFileListBox
VisFontComboBox
VisFontListBox
VisFontNameComboBox
VisFontNameListBox
VisListBoxBase
VisListViewDropDown
VisOutlineComboBox
VisOutlineListBox
VisPictureComboBox
VisPictureListBox
VisRadioListBox