# Interface: com.pnfsoftware.jeb.core.output.text.ITextItem

A text item is used to identify a particular sequence of characters within the string of an ITextDocumentPart. This interface is not directly useful. Derived interfaces [IVisualTextItem](IVisualTextItem) and [IActionableTextItem](IActionableTextItem) are used to associate class IDs \(eg, for coloring\) and item IDs \(eg, to make items actionable\) to text items.

## Method: getLength
- return type: `int`

Description: Get item length within a line.
return: the item character count

## Method: getLine
- return type: `com.pnfsoftware.jeb.core.output.text.ILine`

Description: Get the line that contains this item.
return: the line, or null if the item does not belong to any line

## Method: getOffset
- return type: `int`

Description: Get the item offset within a line.
return: the item offset

## Method: getOffsetEnd
- return type: `int`

Description: Get the item end offset \(exclusive\) within a line.
return: the exclusive end offset

## Method: getText
- return type: `java.lang.String`

Description: Get the text of the item.
return: the text covered by this item

