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

# XmTextClearSelection(3)

A Text function that clears the primary selection

## NAME

**XmTextClearSelection** — A Text function that clears the primary selection

## SYNOPSIS

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

## DESCRIPTION

**XmTextClearSelection** clears the primary selection in the Text widget.

- *widget*

  Specifies the Text widget ID.

- *time*

  Specifies the server time at which the selection value is desired. This should be the time of the event that triggered this request. One source of a valid time stamp is the function **XtLastTimestampProcessed()**.

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

## RELATED

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