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

# XmTextFieldClearSelection(3)

A TextField function that clears the primary selection

## NAME

**XmTextFieldClearSelection** — A TextField function that clears the primary selection

## SYNOPSIS

```
#include <Xm/TextF.h>
void XmTextFieldClearSelection(
Widget widget,
Time time);
```

## DESCRIPTION

**XmTextFieldClearSelection** clears the primary selection in the TextField widget.

- *widget*

  Specifies the TextField widget ID.

- *time*

  Specifies the time at which the selection value is desired. This should be the time of the event that triggered this request.

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

## RELATED

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