ChartDirector 5.1 (.NET Edition)

TextBox


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

MethodInheritedDescription
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.
setPosBoxSets the coordinates of the reference point of the box, which by default is the top-left corner of the box.
setSizeBoxSets the width and height of the box.
setBackgroundBoxSets the background color, border color and 3D border effect of the box.
setRoundedCornersBoxSets the border style to use rounded corners.
getLeftXBoxGets the left x pixel coordinate of the box.
getTopYBoxGets the top y pixel coordinate of the box.
getWidthBoxGets the width of the box.
getHeightBoxGets the height of the box.
getImageCoorBoxGets the image map coordinates of the box as HTML image map attributes.
setZOrderBoxSets the z-order (drawing order) for custom box objects.