Scripts
    Preparing search index...

    Interface IElement

    interface IElement {
        getDocument(): Document;
        getElementType(): string;
        getId(): string;
        getParagraphLevel(): number;
        getParentElement(): DocumentElementContainer;
        getParentParagraph(): ParagraphElement;
        getSystemName(): string;
        getTags(): Tag[];
        getValue(): any;
        hasTag(tag: Tag): boolean;
        isRepeated(): boolean;
        isVisible(): boolean;
        setValue(value?: any): void;
    }

    Implemented by

    Index

    Methods

    • Returns document in which the element is located.

      Returns Document

      Document in which the element is located.

    • Returns type of the element.

      Returns string

      Type of the element as string.

    • Returns id of the element.

      Returns string

      Id of the element.

    • Returns depth of the element.

      Returns number

      Depth of the element.

    • Returns parent paragraph of the element. The paragraph doesn't have to be direct parent of the element.

      Returns ParagraphElement

      Parent paragraph of the element, or null if this element has no parent.

    • Returns system name of the element.

      Returns string

      System name of the element.

    • Returns array of tags of the element.

      Returns Tag[]

      Array of tags of the element.

    • Returns value of the element.

      Returns any

      Value of the element.

    • Checks if the element has specified tag.

      Parameters

      • tag: Tag

        Tag that is checked.

      Returns boolean

      True if element has specified tag, false otherwise.

    • Checks if the element is repeated.

      Returns boolean

      True if element is repeated, false otherwise.

    • Checks if the element is visible.

      Returns boolean

      True if element is visible, false otherwise.

    • Sets value of the element.

      Parameters

      • Optionalvalue: any

        Value to be set to the element.

      Returns void