--- title: textEntity description: Represent part of the text which needs to be formatted in some unusual way --- ## Constructor: textEntity [Back to constructors index](index.md) Represent part of the text which needs to be formatted in some unusual way ### Attributes: | Name | Type | Required | Description | |----------|---------------|----------|-------------| |offset|[int](../types/int.md) | Yes|Offset of the entity in UTF-16 code points| |length|[int](../types/int.md) | Yes|Length of the entity in UTF-16 code points| |type|[TextEntityType](../types/TextEntityType.md) | Yes|Type of the entity| ### Type: [TextEntity](../types/TextEntity.md)