# ISalListControl

Namespace: **PPJ.Runtime.Windows**

Assembly: **PPJ.Web.49** (4.9.0.0)

SAL List controls implement this interface.

{% tabs %}
{% tab title="C#" %}

```csharp
public interface ISalListControl
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Interface ISalListControl
```

{% endtab %}
{% endtabs %}

## Properties

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)AllowHtml

[Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean): Enables or disables HTML content in list items.

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)Count

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns the total number of items in the list.

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)Item(index)

[Object](https://docs.microsoft.com/en-us/dotnet/api/system.object): Returns the item at the specified index.

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)Items

[IList](https://docs.microsoft.com/en-us/dotnet/api/system.collections.ilist): Returns the collection of items.

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)SelectedIndex

[Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns/Sets the index of the currently selected item.

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)SelectedIndices

[Int32\[\]](https://docs.microsoft.com/en-us/dotnet/api/system.int32): Returns the indices of the selected items.

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)SelectedItem

[Object](https://docs.microsoft.com/en-us/dotnet/api/system.object): Returns/Sets the currently selected item.

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)SelectionMode

[SelectionMode](https://docs.wisej.com/api?q=wisej.web.selectionmode): Returns/Sets the selection mode.

## Methods

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)Add(item)

Adds an item to the list.

| Parameter | Type                                                                | Description |
| --------- | ------------------------------------------------------------------- | ----------- |
| **item**  | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) |             |

**Returns:** [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32).

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)AddRange(items)

Adds a collection of items to the list.

| Parameter | Type                                                                    | Description |
| --------- | ----------------------------------------------------------------------- | ----------- |
| **items** | [Object\[\]](https://docs.microsoft.com/en-us/dotnet/api/system.object) |             |

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)Clear()

Clears the list.

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)Delete(index)

Deletes the item at the index.

| Parameter | Type                                                              | Description |
| --------- | ----------------------------------------------------------------- | ----------- |
| **index** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) |             |

**Returns:** [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32).

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)Find(item)

Finds the item in the list.

| Parameter | Type                                                                | Description |
| --------- | ------------------------------------------------------------------- | ----------- |
| **item**  | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) |             |

**Returns:** [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32).

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)FindString(text, startIndex)

Finds the item in the list.

| Parameter      | Type                                                                | Description |
| -------------- | ------------------------------------------------------------------- | ----------- |
| **text**       | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string) |             |
| **startIndex** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)   |             |

**Returns:** [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32).

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)FindStringExact(text, startIndex)

Finds the item in the list.

| Parameter      | Type                                                                | Description |
| -------------- | ------------------------------------------------------------------- | ----------- |
| **text**       | [String](https://docs.microsoft.com/en-us/dotnet/api/system.string) |             |
| **startIndex** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)   |             |

**Returns:** [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32).

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)Insert(index, item)

Inserts the items at the specified position.

| Parameter | Type                                                                | Description |
| --------- | ------------------------------------------------------------------- | ----------- |
| **index** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)   |             |
| **item**  | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) |             |

**Returns:** [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32).

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)IsSelected(index)

Tests if the item at the specified index is selected.

| Parameter | Type                                                              | Description |
| --------- | ----------------------------------------------------------------- | ----------- |
| **index** | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32) |             |

**Returns:** [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean).

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)SetSelected(index, selected)

Selects/Deselects the specified item.

| Parameter    | Type                                                                  | Description |
| ------------ | --------------------------------------------------------------------- | ----------- |
| **index**    | [Int32](https://docs.microsoft.com/en-us/dotnet/api/system.int32)     |             |
| **selected** | [Boolean](https://docs.microsoft.com/en-us/dotnet/api/system.boolean) |             |

### ![](https://620403885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FrwxBtXkZ9hhQWYdbGhAV%2Fuploads%2FCKg4odMPj9bBKavXG5j4%2Finstance.png?alt=media\&token=2ac4a01b-785e-4197-b802-d5aae2250f90)UpdateItem(item)

Updates the specified item on the client.

| Parameter | Type                                                                | Description |
| --------- | ------------------------------------------------------------------- | ----------- |
| **item**  | [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) |             |

## Implemented By

| Name                                                                                                                         | Description                                                                           |
| ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| [SalComboBox](https://docs.wisej.com/extensions/ppj.web.49/controls/ppj.runtime.windows.salcombobox.md)                      | Represents an editable control that displays a drop down list of options to the user. |
| [SalListBox](https://docs.wisej.com/extensions/ppj.web.49/controls/ppj.runtime.windows.sallistbox.md)                        | Represents a control that shows a lost of values that the user can select.            |
| [SalTableColumn](https://docs.wisej.com/extensions/ppj.web.49/controls/saltablewindow/ppj.runtime.windows.saltablecolumn.md) | Summary description for SalTableColumn.                                               |
| [VisColorComboBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.viscolorcombobox.md)            |                                                                                       |
| [VisColorListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.viscolorlistbox.md)              |                                                                                       |
| [VisComboBoxBase](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.viscomboboxbase.md)              |                                                                                       |
| [VisDesktopListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visdesktoplistbox.md)          |                                                                                       |
| [VisDirListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visdirlistbox.md)                  |                                                                                       |
| [VisDirTreeListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visdirtreelistbox.md)          |                                                                                       |
| [VisDriveComboBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visdrivecombobox.md)            |                                                                                       |
| [VisDriveListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visdrivelistbox.md)              |                                                                                       |
| [VisDropDownBase](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visdropdownbase.md)              |                                                                                       |
| [VisFileListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visfilelistbox.md)                |                                                                                       |
| [VisFontComboBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visfontcombobox.md)              |                                                                                       |
| [VisFontListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visfontlistbox.md)                |                                                                                       |
| [VisFontNameComboBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visfontnamecombobox.md)      |                                                                                       |
| [VisFontNameListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visfontnamelistbox.md)        |                                                                                       |
| [VisListBoxBase](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.vislistboxbase.md)                |                                                                                       |
| [VisListViewDropDown](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.vislistviewdropdown.md)      |                                                                                       |
| [VisOutlineComboBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visoutlinecombobox.md)        |                                                                                       |
| [VisOutlineListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visoutlinelistbox.md)          |                                                                                       |
| [VisPictureComboBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.vispicturecombobox.md)        |                                                                                       |
| [VisPictureListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.vispicturelistbox.md)          |                                                                                       |
| [VisRadioListBox](https://docs.wisej.com/extensions/ppj.web.vis.49/controls/ppj.runtime.vis.visradiolistbox.md)              |                                                                                       |
