Trilium Frontend API
    Preparing search index...

    Class Line

    This type describes a line in the document. It is created on-demand when lines are queried.

    Index

    Constructors

    Properties

    Accessors

    Constructors

    Properties

    from: number

    The position of the start of the line.

    number: number

    This line's line number (1-based).

    text: string

    The line's content.

    to: number

    The position at the end of the line (before the line break, or at the end of document for the last line).

    Accessors

    • get length(): number

      The length of the line (not including any line break after it).

      Returns number