ChartDirector 5.1 (.NET Edition)

Box.setPos


Usage

[VB] Public Sub setPos(x As Integer, y As Integer)
[C#] public void setPos(int x, int y);

Description

Sets the coordinates of the reference point of the box, which by default is the top-left corner of the box.

For TextBox with the width and height automatically determined, the TextBox.setAlignment method can be used to modify the anchor position of the reference point. For example, an alignment of Center means the reference point is the center of the box.

For TextBox objects with positions set by ChartDirector (such as the TextBox returned from Axis.addMark or Layer.setDataLabelStyle), the setPos method can be used to set the offsets relative to the default positions of the objects.

Arguments

ArgumentDefaultDescription
x(Mandatory)The x coordinate of the reference point of the box.
y(Mandatory)The y coordinate of the reference point of the box.

Return Value

None