TextWordWrap example for Delphi

This example wraps text inside the rectangle that is specified for the text object.

{Text location}
Lead1.TextTop := 10;
Lead1.TextLeft := 10;
Lead1.TextWidth := 150;
Lead1.TextHeight := 150;

{Text alignment and angle}
Lead1.TextAlign := etaLeftVcenter;
Lead1.TextAngle := 0;

{Enable word wrap}
Lead1.TextWordWrap := True;

Lead1.DrawTextStr ('LEADTOOLS 11 Supports WordWrap when drawing text.', 0);