---
name: "mtext_get_property"
section: "3m17n"
platform: "linux"
package: "m17n-docs"
version: "1.8.4-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mtext_get_property"
---

# mtext\_get\_property(3m17n)

## NAME

mtext\_get\_property -

## SYNOPSIS

**MTextProperty**\* **mtext\_get\_property** (**MText** \* *mt*, int *pos*, MSymbol *key*)

## DESCRIPTION

Get the topmost text property. The **mtext\_get\_property()** function searches the character at position **pos** in M-text **mt** for a text property whose key is **key**.

## RETURN VALUE

If a text property is found, **mtext\_get\_property()** returns it. If there are multiple text properties, it returns the topmost one. If no such property is found, it returns `NULL` without changing the external variable **merror\_code**.

If an error is detected, **mtext\_get\_property()** returns `NULL` and assigns an error code to the external variable **merror\_code**. \

## COPYRIGHT

Copyright (C) 2001 Information-technology Promotion Agency (IPA)\
 Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)\
 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License  \<http://www.gnu.org/licenses/fdl.html\>.
