---
title: "SVGTextContentElement.GetNumberOfChars"
url: "https://reference.aspose.com/html/java/com.aspose.html.dom.svg/svgtextcontentelement/getnumberofchars/"
product: "Aspose.HTML for Java API Reference"
description: "SVGTextContentElement method. Returns the total number of characters available for rendering within the current element which includes referenced characters from tref reference regardless of whether they will be rendered. Effectively this is equivalent to the length of the NodetextContent attribute from DOM Level 3 Core DOM3 section 1.4 if that attribute also expanded tref elements"
---

## SVGTextContentElement.GetNumberOfChars method

Returns the total number of characters available for rendering within the current element, which includes referenced characters from ‘tref’ reference, regardless of whether they will be rendered. Effectively, this is equivalent to the length of the Node::textContent attribute from DOM Level 3 Core ([DOM3], section 1.4), if that attribute also expanded ‘tref’ elements.

```java
public long GetNumberOfChars()
```

### Return Value

Total number of characters.

### See Also

* class [SVGTextContentElement](../)
* package [com.aspose.html.dom.svg](../../../com.aspose.html.dom.svg/)
* package [Aspose.HTML](../../../)
