typograph-editor-documentation
    Preparing search index...

    Function setListType

    • Make every paragraph the selection touches a bulleted list, a numbered list, or neither.

      A toggle rather than a setter: asking for the type a paragraph already has turns the list off, which is what the two independent toolbar buttons need and what a paragraph panel does elsewhere. A paragraph is bulleted, numbered, or neither — never both.

      Paragraph-level, so it goes the same way the indents do. Only list_type is written: a paragraph turned back into a bullet keeps its level, its start value and its format, exactly as InDesign leaves them, and the renderer ignores the ones its type does not use. That is also what makes switching a list back and forth non-destructive.

      Parameters

      • value: "number" | "bullet"

      Returns void