Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Word wraps the give text and print it into a given bounding rectangle. If the height of the rectangle is zero, then the rectangle stretches to accommodate to full text and the height of the rectangle is returned.


Code Block
XFRXDraw::Object.DrawTextBox(tnLeft, tnTop, tnWidth, tnHeight, 
                      tcText [, tnAlign [, tnVAlign
                      [, tnRotate [,tnRotationPoint
 
                    [, tcLinkName [, tcLinkRef [, tcBookmark
  
                   [, tcTooltip [, tnmode [, liCP
  
                   [, tnOutlineStyle [, liOutlineR  
                     [, liOutlineG [, liOutlineB 
                      [, lcOutlineParent [, liInvisible
                      [, tnRotationXOffset [, tnRotationYOffset]]]]]]]]]]]]]]]]])

Return value

  The height of the bounding rectangle is returned.

Parameters

tnLeft, tnTop
  The X and Y coordinates of the upper left hand corner of the bounding rectangle.

...

liOutlineR, liOutlineG, liOutlineB
  Red, green and blue components of the outline foreground color (since XFRX 19.0)

lcOutlineParent
  If not empty, the parameter contains a parent name of a bookmark/outline. (since XFRX 19.0)

...

tnRotationYOffset
 Rotation Y Offset in foxels from the left top corner.  (since XFRX 21.1)


Remarks

Applies To: XFRX#DRAW, XFRX#XML