CBCGPChartAxisMarkObject* CBCGPChartVisualObject::AddChartAxisMarkObject | ( | double | dblVal, |
const CString & | strText, | ||
BOOL | bVertAxis = TRUE , |
||
BOOL | bOutside = TRUE , |
||
const CBCGPBrush & | brTextColor = CBCGPBrush() , |
||
const CBCGPBrush & | brFill = CBCGPBrush() , |
||
const CBCGPBrush & | brOutline = CBCGPBrush() |
||
) |
Adds an axis mark Chart Object to the Chart.
Call this helper to add a new axis mark object. See CBCGPChartAxisMarkObject for more information about axis marks.
The helper does not provide the ability to shift the axis mark object by a couple of pixels relative to axis position, but you can modify the coordinates of the base object to do so.
The following example shifts the axis mark by 10 pixels from the Y axis:
dblVal | Specifies X or Y axis value to place the mark at. |
strText | Specifies axis mark text. |
bVertAxis | TRUE - place the mark at vertical axis. FALSE - place the mark at horizontal axis. |
bOutside | TRUE - place outside axis mark; FALSE - place inside axis mark. |
brTextColor | Specifies object's text color. |
brFill | Specifies mark background. |
brOutline | Specifies line color. |