# text

## `Wrap.prototype.text`

The [`get`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get) accessor gets the text of the [`Wrap`](https://docs.angular-package.dev/wrapper/wrap/overview) by returning the [`#text`](https://docs.angular-package.dev/wrapper/wrap/properties/text) property of a specified object.

{% code title="wrap.class.ts" %}

```typescript
public get text(): Text {
  return this.#text;
}
```

{% endcode %}

### Return type

#### <mark style="color:green;">`Text`</mark>

The **return type** is the generic type variable [`Text`](https://docs.angular-package.dev/wrapper/generic-type-variables#wrap-less-than...-text-...greater-than) declared in the [`Wrap`](https://docs.angular-package.dev/wrapper/wrap) class.

### Returns

The **return value** is the text of a generic type variable [`Text`](https://docs.angular-package.dev/wrapper/generic-type-variables#wrap-less-than...-text-...greater-than).

## Example usage

```typescript
// Example usage.
import { Wrap } from '@angular-package/wrapper';

// Returns quote of type "quote".
new Wrap(`[`, `]`, 'quote').text;
```
