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

FlowIDA text flow identifier returned by NewTextFlow
AlignmentHorizontal alignment mode: 0 = left, 1 = centre, 2 = right, 3 = full justification (distributing extra space across inter-word gaps on non-terminal lines)

Return values

1The alignment mode was updated on the text flow
0The 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