TextWordWrap example for Visual J++

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

// Text location
LEAD1.setTextTop( 10 );
LEAD1.setTextLeft( 10 );
LEAD1.setTextWidth( 150 );
LEAD1.setTextHeight( 150 );

// Text alignment and angle
LEAD1.setTextAlign( (short) LTOCXU.EfxTextAlignConstants.EFX_TEXTALIGN_LEFT_VCENTER );
LEAD1.setTextAngle( (short) 0 );

// Enable word wrap
LEAD1.setTextWordWrap( true );
LEAD1.DrawText( "LEADTOOLS 14 Supports WordWrap when drawing text.", 0 );