# Interface: com.pnfsoftware.jeb.core.output.text.IAnchor

Definition of an anchor. An anchor is the first line of a text document chunk.  

  Anchor identifiers start at 0. The line index of an anchor is always relative to an  [ITextDocumentPart](com.pnfsoftware.jeb.core.output.text.ITextDocumentPart.md), not an [ITextDocument](com.pnfsoftware.jeb.core.output.text.ITextDocument.md).

## Abstract Method: getIdentifier
- return type: `long`

Description: Get the anchor identifier. The identifier is a zero\+ index number.
return: the identifier

## Abstract Method: getLineIndex
- return type: `int`

Description: Get the line index, within the document part, of the first line \(the anchor line\) of the  anchored chunk.
return: the line index within the containing part

