Chart.TChartTitle
 
 
 


TChartTitle
Hierarchy     Properties     Methods     

Unit
Chart

Description
The TChartTitle component is used to display Chart TCustomChart.Title and TCustomChart.Foot text strings at top and bottom Chart sides respectively.
The TChartTitle.Text property contains the text to be displayed.
This property is of type TStrings which means that it is a series of strings in a list.
Whenever you change the Text property you should repaint the Chart component manually. It's not done automatically.

Example:

With Chart1.Title.Text do
begin
Clear;
Add('ACME Monthly Sales');
Add('Year: 1997');
end;

Chart1.Repaint;


Set the TTeeCustomShapeBrushPen.Visible property to True to show the Title or Foot contents.
Change the text appearance using the TTeeCustomShape.Font property.
You can draw a frame around text by setting the TTeeCustomShapeBrushPen.Frame pen properties.
The frame background color and pattern is defined by the TTeeCustomShapeBrushPen.Brush property.
The TChartTitle.AdjustFrame boolean property controls if title frame will be drawn around title text or using the whole Chart width.
Title text can be aligned using the TChartTitle.Alignment property.

The TTeeCustomShapeBrushPen.ParentChart public read-only property refers to the Chart component that owns the title.




Send us Help Feedback. Copyright 1995-2024 © by Steema Software. All Rights Reserved.