Interface IAnchor
- All Known Implementing Classes:
Anchor
,CodeAnchor
public interface 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
, not an ITextDocument
.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the anchor identifier.int
Get the line index, within the document part, of the first line (the anchor line) of the anchored chunk.
-
Method Details
-
getIdentifier
long getIdentifier()Get the anchor identifier. The identifier is a zero+ index number.- Returns:
- the identifier
-
getLineIndex
int getLineIndex()Get the line index, within the document part, of the first line (the anchor line) of the anchored chunk.- Returns:
- the identifier
-