Colibrio Reader Framework API - Cloud license
    Preparing search index...

    Describes a full or partial selection of an IContentBlock associated with a ContentLocation.

    interface IContentBlockTarget {
        getAnchorPoint(): ContentBlockTargetAnchorPoint;
        getCharLength(): number;
        getCharOffset(): number;
        getContentBlock(): IContentBlock;
        toJSON(): IContentBlockTargetData;
    }

    Methods

    • The number of characters selected in the ContentBlock by the ContentLocation.

      Returns number

    • The character offset within the content block, corresponding to the start position of the ContentLocation.

      Returns number