Skip to content

API reference / Common / Engine types / TextFloatingHorizontalAlignment

Type Alias: TextFloatingHorizontalAlignment ​

ts
type TextFloatingHorizontalAlignment = 
  | "left"
  | "right"
  | "center"
  | "inside"
  | "outside"
  | {
  absolute: number;
};

Where a floating drawing lands within its horizontal origin — the file's choice of wp:align or wp:posOffset, as one value.

The two are alternatives, not a value and a fallback, which is why they are one enum: Word's own dialog states it the same way, as Alignment against Absolute position.