Google Apps Script API
    Preparing search index...

    An enumeration of the type of text alignments.

    // Make the first character in the first paragraph be superscript.
    var text = DocumentApp.getActiveDocument().getBody().getParagraphs()[0].editAsText();
    text.setTextAlignment(0, 0, DocumentApp.TextAlignment.SUPERSCRIPT);
    
    Index

    Enumeration Members

    Enumeration Members

    NORMAL: number
    SUBSCRIPT: number
    SUPERSCRIPT: number