> For the complete documentation index, see [llms.txt](https://fto-2.gitbook.io/fto-indicators-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fto-2.gitbook.io/fto-indicators-docs/api-reference/objects/properties-text-and-anchors/get-object-text.md).

# GetObjectText

Reads the display text of a named chart object.

## Signature

```typescript
GetObjectText(chartId: number, name: string, isStatic?: boolean | undefined): string | null
```

## Parameters

| Name       | Type                   | Required | Description                                                                                                                                           |
| ---------- | ---------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `chartId`  | `number`               | Yes      | Targets the chart window; `0` keeps calls on the chart this module is attached to.                                                                    |
| `name`     | `string`               | Yes      | Stable identifier for later updates and deletion — prefix it with your module name.                                                                   |
| `isStatic` | `boolean \| undefined` | No       | Collection to access: `true` (default) for non-editable drawings; `false` for regular drawing tools. Match creation. Action buttons remain clickable. |

## Returns

The object text, or `null` when no chart is attached.

## Usage

* Searches all subwindows in the selected collection.
* Raises an object error when the object is absent.

## Example

```typescript
const text = this.api.GetObjectText(0, labelName, true)
```

## Related API

* [SetObjectText](/fto-indicators-docs/api-reference/objects/properties-text-and-anchors/set-object-text.md)
* [GetObjectStringProperty](/fto-indicators-docs/api-reference/objects/properties-text-and-anchors/get-object-string-property.md)
* [Chart-object cleanup](/fto-indicators-docs/api-reference/objects/creation-and-cleanup/chart-object-cleanup.md)
