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

# XmRepTypeGetId(3)

A representation type manager function that retrieves the identification number of a representation type

## NAME

**XmRepTypeGetId** — A representation type manager function that retrieves the identification number of a representation type

## SYNOPSIS

```
#include <Xm/RepType.h>
XmRepTypeId XmRepTypeGetId(
String rep_type);
```

## DESCRIPTION

**XmRepTypeGetId** searches the registration list for the specified representation type and returns the associated identification number.

- *rep\_type*

  Specifies the representation type for which an identification number is requested

## RETURN

Returns the identification number of the specified representation type. If the representation type is not registered, the function returns **XmREP\_TYPE\_INVALID**.

## RELATED

[**XmRepTypeGetRegistered**(3)](/XmRepTypeGetRegistered/3.md) and [**XmRepTypeRegister**(3)](/XmRepTypeRegister/3.md).
