ChartDirector Ver 5.0 (PHP Edition)

TextBox

The TextBox class represents text boxes. It is a subclass of Box.

Method | Inherited | Description
--- | --- | ---
setText | (Self) | Sets the text to be shown in the text box.
setFontStyle | (Self) | Sets the font of the text by specifying the file that contains the font.
setFontSize | (Self) | Sets the font height and width in points.
setFontAngle | (Self) | Sets the rotation angle and layout direction of the text.
setFontColor | (Self) | Sets the color of the text.
setAlignment | (Self) | Sets the alignment of the text relative to the container box.
setWidth | (Self) | Sets the width of the text box and wraps text if necessary.
setHeight | (Self) | Sets the height of the text box.
setMaxWidth | (Self) | Sets the maximum width of the text box and wraps text if necessary.
setTruncate | (Self) | Sets the maximum number of lines in the text box, and truncate the text if it exceeds the line count.
setMargin | (Self) | Sets all margins (left, right, top, and bottom) of the text box to the same value.
setMargin2 | (Self) | Sets the margins of the text box in pixels.
setPos | Box | Sets the coordinates of the reference point of the box, which by default is the top-left corner of the box.
setSize | Box | Sets the width and height of the box.
setBackground | Box | Sets the background color, border color and 3D border effect of the box.
setRoundedCorners | Box | Sets the border style to use rounded corners.
getLeftX | Box | Gets the left x pixel coordinate of the box.
getTopY | Box | Gets the top y pixel coordinate of the box.
getWidth | Box | Gets the width of the box.
getHeight | Box | Gets the height of the box.
getImageCoor | Box | Gets the image map coordinates of the box as HTML image map attributes.
setZOrder | Box | Sets the z-order (drawing order) for custom box objects.

© 2009 Advanced Software Engineering Limited. All rights reserved.