# FormatItem

> Base class that represents a substring of text from a parsed format string.

## Definition

* **Type:** Class
* **Namespace:** [Unity.SmartStrings.Core.Parsing](/engine/6000.7/script-reference/unity/smartstrings/core/parsing.md)
* **Assembly:** UnityEngine.SmartStringsModule

```csharp
public abstract class FormatItem
```

## Properties

| Property                                                                                                           | Description                                                                                                                                                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [BaseString](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/basestring.md)             | Gets the base format string.                                                                                                                                                                                                                              |
| [EndIndex](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/endindex.md)                 | The end index is pointing to ONE POSITION AFTER the last character of item.                                                                                                                                                                               |
| [Length](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/length.md)                     | Gets the result of [FormatItem.EndIndex](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/endindex.md) minus [FormatItem.StartIndex](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/startindex.md). |
| [ParentFormatItem](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/parentformatitem.md) | The parent [FormatItem](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem.md) of this instance, `null` if no parent exists.                                                                                                      |
| [RawText](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/rawtext.md)                   | Retrieves the raw text that this item represents.                                                                                                                                                                                                         |
| [SmartSettings](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/smartsettings.md)       | The settings for formatter and parser.                                                                                                                                                                                                                    |
| [StartIndex](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/startindex.md)             | The start index is pointing to the first character of item.                                                                                                                                                                                               |

## Methods

| Method                                                                                                 | Description                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
| [AsSpan](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/asspan.md)         | Gets the ReadOnlySpan\_1 representation of this [FormatItem](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem.md). |
| [Clear](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/clear.md)           | Clears the [FormatItem](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem.md) or the derived class.                 |
| [Initialize](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/initialize.md) | Initializes the [FormatItem](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem.md) or the derived class.            |
| [ToString](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem/tostring.md)     | Gets the string representation of this [FormatItem](/engine/6000.7/script-reference/unity/smartstrings/core/parsing/formatitem.md).          |
