> For the complete documentation index, see [llms.txt](https://docs.angular-package.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.angular-package.dev/wrapper/wrap/methods/instance.md).

# Instance

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><a href="/wrapper/wrap/methods/instance/getclosing.md"><strong>getClosing()</strong></a><br>Gets the <a href="/wrapper/getting-started/basic-concepts.md#closing">closing</a> chars of the wrap by returning the <a href="/wrapper/wrap/properties.md#closing-closing"><code>#closing</code></a> property of a specified object.</p>                                                                                                                                                                                                                                                                 |
| <p><a href="/wrapper/wrap/methods/instance/getopening.md"><strong>getOpening()</strong></a><br>Gets the <a href="/wrapper/getting-started/basic-concepts.md#opening">opening</a> chars of the wrap by returning the <a href="/wrapper/wrap/properties.md#opening-opening"><code>#opening</code></a> property of a specified object.</p>                                                                                                                                                                                                                                                                 |
| <p><a href="/wrapper/wrap/methods/instance/gettext.md"><strong>getText()</strong></a><br>Gets the text of the wrap by returning the <a href="/wrapper/wrap/properties/text.md"><code>#text</code></a> property of a specified object, without the <a href="/wrapper/wrap/accessors/opening.md">opening</a> and <a href="/wrapper/wrap/accessors/closing.md">closing</a> chars of the <a href="/wrapper/wrap/overview.md"><code>Wrap</code></a>.</p>                                                                                                                                                     |
| <p><a href="/wrapper/wrap/methods/instance/hasclosing.md"><strong>hasClosing()</strong></a><br>Checks whether the <a href="/wrapper/wrap/methods/instance/valueof.md">primitive value</a> of a specified object has the <a href="/wrapper/wrap/accessors/closing.md"><code>closing</code></a> chars or given <a href="/wrapper/wrap/methods/instance/hasclosing.md#closing-string"><code>closing</code></a> chars.</p>                                                                                                                                                                                  |
| <p><a href="/wrapper/wrap/methods/instance/hasopening.md"><strong>hasOpening()</strong></a><br>Checks whether the <a href="/wrapper/wrap/methods/instance/valueof.md">primitive value</a> of a specified object has the <a href="/wrapper/wrap/accessors/opening.md"><code>opening</code></a> chars or given <a href="/wrapper/wrap/methods/instance/hasopening.md#opening-string"><code>opening</code></a> chars.</p>                                                                                                                                                                                  |
| <p><a href="/wrapper/wrap/methods/instance/hastext.md"><strong>hasText()</strong></a><br>The method checks whether the <a href="/wrapper/wrap/accessors/text.md"><code>text</code></a> of a specified <a href="/wrapper/wrap/overview.md"><code>Wrap</code></a> object is defined, which means it's a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String"><code>string</code></a> of at least one char and optionally equal to the given <a href="/wrapper/wrap/methods/instance/hastext.md#text-string"><code>text</code></a>.</p>                       |
| <p><a href="/wrapper/wrap/methods/instance/iswrapped.md"><strong>isWrapped()</strong></a><br>The method checks whether the <a href="/wrapper/wrap/methods/instance/valueof.md">primitive value</a> of the specified object is wrapped by the <a href="/wrapper/wrap/accessors/opening.md">opening</a> and <a href="/wrapper/wrap/accessors/closing.md">closing</a> chars of an instance or given <a href="/pages/VDTORK00NPJgmbN7aELv#opening-string-this.-opening"><code>opening</code></a> and <a href="/pages/VDTORK00NPJgmbN7aELv#closing-string-this.-closing"><code>closing</code></a> chars.</p> |
| <p><a href="/wrapper/wrap/methods/instance/replaceclosing.md"><strong>★ replaceClosing()</strong></a><br>Returns the <a href="/wrapper/wrap/methods/instance/valueof.md">primitive value</a> with replaced <a href="/wrapper/wrap/accessors/closing.md"><code>closing</code></a> chars.</p>                                                                                                                                                                                                                                                                                                             |
| <p><a href="/wrapper/wrap/methods/instance/replaceopening.md"><strong>★ replaceOpening()</strong></a><br>Returns the <a href="/wrapper/wrap/methods/instance/valueof.md">primitive value</a> with replaced <a href="/wrapper/wrap/accessors/opening.md"><code>opening</code></a> chars.</p>                                                                                                                                                                                                                                                                                                             |
| <p><a href="/wrapper/wrap/methods/instance/replacetext.md"><strong>★ replaceText()</strong></a><br>Returns the <a href="/wrapper/wrap/methods/instance/valueof.md">primitive value</a> with replaced <a href="/wrapper/wrap/accessors/text.md"><code>text</code></a>.</p>                                                                                                                                                                                                                                                                                                                               |
| <p><a href="/wrapper/wrap/methods/instance/tostring.md"><strong>toString()</strong></a><br>Gets the <a href="/wrapper/getting-started/basic-concepts.md#wrap">wrap</a>, the <a href="/wrapper/wrap/methods/instance/valueof.md">primitive value</a> of a specified <a href="/wrapper/wrap/overview.md"><code>Wrap</code></a> object.</p>                                                                                                                                                                                                                                                                |
| <p><a href="/wrapper/wrap/methods/instance/valueof.md"><strong>valueOf()</strong></a><br>Returns the <a href="/wrapper/getting-started/basic-concepts.md#wrap">wrap</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf">primitive value</a> of a specified <a href="/wrapper/wrap/overview.md"><code>Wrap</code></a> object.</p>                                                                                                                                                                                                             |
