CBCGPChartTextObject::CBCGPChartTextObject | ( | CBCGPChartVisualObject * | pParentChart, |
const CString & | strText, | ||
double | dblValX, | ||
double | dblValY, | ||
const CBCGPBrush & | brTextColor, | ||
const CBCGPBrush & | brFill, | ||
const CBCGPBrush & | brOutline, | ||
double | dblDistanceFromPoint = _EmptyCoordinate , |
||
double | dblAngle = _EmptyCoordinate , |
||
BOOL | bDrawConnector = FALSE |
||
) |
Constructs a Chart Text Object.
The constructor always sets CM_CHART_VALUES coordinate mode if dblDistanceFromPoint and dblAngle are not specified; otherwise it sets CM_CHART_VALUE_DIST_ANGLE coordinate mode.
If you wish to use other coordinate mode, set them using CBCGPChartObject::SetCoordinates or CBCGPChartObject::SetCoordinateMode.
pParentChart | A pointer to a parent chart. |
strText | Specifies the text. |
dblValX | X value in Chart coordinates. |
dblValY | Y value in chart coordinates. |
brTextColor | Text color. |
brFill | Fill color. |
brOutline | Outline color. |
dblDistanceFromPoint | Distance of the center of text box from X,Y (specified by dblValX, dblValY). Can be empty. |
dblAngle | Angle (in degrees) of the text box relative to Y axis. |
bDrawConnector | TRUE - draw connector between text box and the point specified by dblValX, dblValY. |