TextSegment

TextSegment class

Represents segment of Pdf text.

The TextSegment type exposes the following members:

Constructors

NameDescription
TextSegment()Creates TextSegment object.
TextSegment(text)Initializes a new instance of the TextSegment class

Properties

NameDescription
start_char_indexGets starting character index of current segment in the show text operator (Tj, TJ) segment.
end_char_indexGets ending character index of current segment in the show text operator (Tj, TJ) segment.
textGets or sets string text object that the TextSegment object represents.
text_stateGets or sets text state for the text that TextSegment object represents.
positionGets text position for text, represented with TextSegment object.
rectangleGets rectangle of the TextSegment
baseline_positionGets text position for text, represented with TextSegment object.
The YIndent of the Position structure represents baseline coordinate of the text segment.
text_edit_optionsGets or sets text edit options. The options define special behavior when requested symbol cannot be written with font.
charactersGets collection of CharInfo objects that represent information on characters in the text segment.
hyperlinkGets or sets the segment hyperlink(for pdf generator).

Methods

NameDescription
my_html_encode(value)Encodes string as html.

See Also