---
name: "XmListPosSelected"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmListPosSelected"
---

# XmListPosSelected(3)

A List function that determines if the list item at a specified position is selected

## NAME

**XmListPosSelected** — A List function that determines if the list item at a specified position is selected

## SYNOPSIS

```
#include <Xm/List.h>
Boolean XmListPosSelected(
Widget widget,
int position);
```

## DESCRIPTION

**XmPosSelected** determines if the list item at the specified position is selected or not.

- *widget*

  Specifies the ID of the List widget

- *position*

  Specifies the position of the list item. A value of 1 indicates the first item in the list; a value of 2 indicates the second item; and so on. A value of 0 (zero) specifies the last item in the list.

For a complete definition of List and its associated resources, see [**XmList**(3)](/XmList/3.md).

## RETURN

Returns True if the list item is selected; otherwise, returns False if the item is not selected or the specified position is invalid.

## RELATED

[**XmList**(3)](/XmList/3.md).
