CChartTitle Class Reference

This class is responsible for the titles displayed on the control. More...

#include <ChartTitle.h>

List of all members.

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.


Detailed Description

This class is responsible for the titles displayed on the control.

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.


Member Function Documentation

void CChartTitle::SetFont ( const CChartFont newFont  ) 

Sets the default font.

This function allows to set extended font style by passing a CChartFont object.

Parameters:
newFont The new font.

void CChartTitle::SetFont ( int  iPointSize,
const TChartString &  strFaceName 
)

Sets the default font.

Parameters:
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.

Parameters:
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.

Parameters:
iLineIndex The index of the line to set the font.
iPointSize The font point size.
strFaceName The font face name ("Times New Roman", "Arial", ...)


The documentation for this class was generated from the following files:

Generated on Sun Jan 17 13:33:11 2010 for ChartDemo by  doxygen 1.5.8