
## TextSegment class

Represents segment of Pdf text.

The TextSegment type exposes the following members:
## Constructors
| Name | Description |
| :- | :- |
|TextSegment()|Creates TextSegment object.|
|TextSegment(text)|Initializes a new instance of the TextSegment class|
## Properties
| Name | Description |
| :- | :- |
|start_char_index|Gets starting character index of current segment in the show text operator (Tj, TJ) segment.|
|end_char_index|Gets ending character index of current segment in the show text operator (Tj, TJ) segment.|
|text|Gets or sets string text object that the [TextSegment](/pdf/python-net/aspose.pdf.text/textsegment/) object represents.|
|text_state|Gets or sets text state for the text that [TextSegment](/pdf/python-net/aspose.pdf.text/textsegment/) object represents.|
|position|Gets text position for text, represented with [TextSegment](/pdf/python-net/aspose.pdf.text/textsegment/) object.|
|rectangle|Gets rectangle of the TextSegment|
|baseline_position|Gets text position for text, represented with [TextSegment](/pdf/python-net/aspose.pdf.text/textsegment/) object.<br/>            The YIndent of the Position structure represents baseline coordinate of the text segment.|
|text_edit_options|Gets or sets text edit options. The options define special behavior when requested symbol cannot be written with font.|
|characters|Gets collection of CharInfo objects that represent information on characters in the text segment.|
|hyperlink|Gets or sets the segment hyperlink(for pdf generator).|
## Methods
| Name | Description |
| :- | :- |
|my_html_encode(value)|Encodes string as html.|

### See Also

* namespace [aspose.pdf.text](/pdf/python-net/aspose.pdf.text/)
* assembly [Aspose.PDF](/pdf/python-net/)

