#include <ChartTitle.h>
Public Member Functions | |
size_t | GetStringCount () const |
Returns the number of lines in the title. | |
TChartString | GetString (size_t Index) const |
Returns a specific line, specified by its index. | |
void | AddString (const TChartString &NewString) |
Adds a new line to the title. | |
void | RemoveAll () |
Removes all the lines displayed in the title. | |
void | SetFont (int iPointSize, const TChartString &strFaceName) |
Sets the default font. | |
void | SetFont (const CChartFont &newFont) |
Sets the default font. | |
void | SetLineFont (int iLineIndex, int iPointSize, const TChartString &strFaceName) |
Sets the font for a specific line. | |
void | SetLineFont (int iLineIndex, const CChartFont &newFont) |
Sets the font for a specific line. | |
void | SetVisible (bool bVisible) |
Shows/hides the title. | |
bool | IsVisible () const |
Returns true if the title is visible. | |
COLORREF | GetColor () const |
Returns the text color. | |
void | SetColor (COLORREF NewColor) |
Sets the text color. | |
BOOL | IsPointInside (const CPoint &screenPoint) const |
Returns true if a screen point is in the region of the title. |
Several lines can be displayed in the title, each one possibly with its own font. It is retrieved by calling the GetTitle() function from the CChartCtrl class.
void CChartTitle::SetFont | ( | const CChartFont & | newFont | ) |
Sets the default font.
This function allows to set extended font style by passing a CChartFont object.
newFont | The new font. |
void CChartTitle::SetFont | ( | int | iPointSize, | |
const TChartString & | strFaceName | |||
) |
Sets the default font.
iPointSize | The font point size. | |
strFaceName | The font face name ("Times New Roman", "Arial", ...) |
void CChartTitle::SetLineFont | ( | int | iLineIndex, | |
const CChartFont & | newFont | |||
) |
Sets the font for a specific line.
This function allows to set extended font style by passing a CChartFont object.
iLineIndex | The index of the line to set the font. | |
newFont | The new font. |
void CChartTitle::SetLineFont | ( | int | iLineIndex, | |
int | iPointSize, | |||
const TChartString & | strFaceName | |||
) |
Sets the font for a specific line.
iLineIndex | The index of the line to set the font. | |
iPointSize | The font point size. | |
strFaceName | The font face name ("Times New Roman", "Arial", ...) |