Wenn Sie ein Enum aufrufen möchten, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel:
DocumentApp.TextAlignment.NORMAL.
// Make the first character in the first paragraph of the active tab be// superscript.constdocumentTab=DocumentApp.getActiveDocument().getActiveTab().asDocumentTab();consttext=documentTab.getBody().getParagraphs()[0].editAsText();text.setTextAlignment(0,0,DocumentApp.TextAlignment.SUPERSCRIPT);
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2024-12-22 (UTC)."],[[["TextAlignment is used to set the alignment of text, such as normal, superscript, or subscript."],["You can access TextAlignment properties using `DocumentApp.TextAlignment` followed by the specific property like `NORMAL` or `SUPERSCRIPT`."],["The provided code snippet demonstrates how to apply superscript alignment to the first character of a paragraph."]]],[]]