## ListBox::SelectedItem method


Sets whether the item is selected.

```cpp
void Aspose::Cells::Drawing::ListBox::SelectedItem(int32_t itemIndex, bool isSelected)
```


| Parameter | Type | Description |
| --- | --- | --- |
| itemIndex | int32_t | The item index |
| isSelected | bool | Whether the item is selected. True means that this item should be selected. False means that this item should be unselected. |

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [ListBox](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
