SetTextFlowAlignment
Text and typography
Description
Sets the horizontal paragraph alignment mode for a text flow created with NewTextFlow
Syntax
Delphi
Function TPDFlib.SetTextFlowAlignment(FlowID, Alignment: Integer): Integer;
Parameters
| FlowID | A text flow identifier returned by NewTextFlow |
|---|---|
| Alignment | Horizontal alignment mode: 0 = left, 1 = center, 2 = right, 3 = full justification (distributing extra space across inter-word gaps on non-terminal lines) |
Return values
| 1 | The alignment mode was updated on the text flow |
|---|---|
| 0 | The FlowID was invalid or Alignment was outside 0..3 |
Remarks
Applies to both single-box DrawTextFlow and multi-column DrawTextFlowColumns rendering
See also
NewTextFlow, DrawTextFlow, DrawTextFlowColumns, SetTextFlowDropCap