ChartDirector Ver 3.1 (PHP Edition Edition)

TextBox


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

MethodInheritedDescription
setText(Self)Set the text to be shown in the text box.
setFontStyle(Self)Set the font of the text by specifying the file that contains the font.
setFontSize(Self)Set the font height and width in points.
setFontAngle(Self)Set the rotation angle and layout direction of the text.
setFontColor(Self)Set the color of the text.
setMargin(Self)Set all margins (left, right, top, and bottom) of the text box to the same value.
setMargin2(Self)Set the margins of the text box in pixels.
setAlignment(Self)Set the alignment of the text relative to the container box.
setPosBoxSet the coordinates of the top-left corner of the box.
setSizeBoxSet the width and height of the box.
setBackgroundBoxSet the background color, border color and 3D border effect of the box.
getWidthBoxGet the width of the box.
getHeightBoxGet the height of the box.
getImageCoorBoxGet the image map coordinates of the box as HTML image map attributes.