Word.HorizontalInVerticalType enum
Gibt das Format für horizontalen Text an, der innerhalb von vertikalem Text festgelegt ist.
Hinweise
Verwendet von
Beispiele
// Link to full sample: https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/28-formatting/apply-character-layout-desktop.yaml
// Keeps the first paragraph's characters horizontal within vertical text.
await Word.run(async (context) => {
const paragraphRange: Word.Range = context.document.body.paragraphs.getFirst().getRange(Word.RangeLocation.content);
const horizontalLayout: Word.HorizontalInVerticalType = Word.HorizontalInVerticalType.fitInLine;
paragraphRange.horizontalInVertical = horizontalLayout;
await context.sync();
console.log("Enabled horizontal-in-vertical layout on the first paragraph. Get layout settings to verify it.");
});
Felder
| fitInLine = "FitInLine" | Die Größe des horizontalen Textstücks wird so angepasst, dass es in die Zeile für das vertikale Textstück passt. |
| none = "None" | Auf das horizontale Textstück wird keine Formatierung angewendet. |
| resizeLine = "ResizeLine" | Die Zeile für das vertikale Textstück wird auf das horizontale Textstück angepasst. |