TextAPI.overrideDefaultPlacement

 

long overrideDefaultPlacement(int vertEnum, int horzEnum)

This method changes the current default vertical and horizontal placement enumerations help by the TextAPI object to vertEnum and horzEnum, repsectively. Valid values for vertEnum are: 0, 1, or 2, corresponding to above, centered, and below, respectively.  Valid values for horzEnum are: 0, 1, or 2, corresponding to left, centered, and right, respectively.  Based on these assignments, the text is placed in any of nine possible positions, relative to the target. These nine positions are:

The target position to which these offsets apply depends upon how the label is created.  This depends on the method used, as follows:

This method returns zero upon success, and returns an error code if either of the arguments are invalid.