BCGSuite for MFC
void CBCGPChartLegendVisualObject::SetHorizontalAlignment ( LegendAlignment  horzAlign,
BOOL  bRedraw = TRUE 
)

Sets horizontal alignment of advanced legend

horzAlign can be one of the following enumerated values:

  • LA_NEAR - legend at the top
  • LA_CENTER - legend is centered
  • LA_FAR - legend at the bottom

If an advanced legend is located within large rectangle (m_rect is larger than legend size), it can position itself within that rectangle according to vertical and horizontal options specified by SetVerticalAlignment() and SetHorizontalAlignment.

Parameters
horzAlignspecifies the alignment
bRedrawspecifies whether a legend should be redrawn