TextWordWrap example for Visual Basic

Note: Also works with Access 95 and 97.

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 = EFX_TEXTALIGN_LEFT_VCENTER
Lead1.TextAngle = 0

'Enable word wrap
Lead1.TextWordWrap = True

Lead1.DrawText "LEADTOOLS 14 Supports WordWrap when drawing text.", 0