A chart can have two titles, one called the Header and one called the Footer. Because each title can be positioned above, below, and to the right or left of the chart, it is not necessary to adhere to the traditional concept of Header and Footer at the top and bottom of an object.
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
c1Chart3D1.Header.Text = "Sample Header Text" c1Chart3D1.Header.Compass = C1.Win.C1ChartBase.CompassEnum.East c1Chart3D1.Header.Location = New Point(20, -1) c1Chart3D1.Footer.Text = "Sample Footer Text" c1Chart3D1.Footer.Compass = C1.Win.C1ChartBase.CompassEnum.South c1Chart3D1.Footer.Location = New Point((C1Chart3D1.Size.Width - 120), -1) |
To write code in C#
C# |
Copy Code
|
---|---|
c1Chart3D1.Header.Text = "Sample Header Text"; c1Chart3D1.Header.Compass = C1.Win.C1ChartBase.CompassEnum.East; c1Chart3D1.Header.Location = new Point(20, -1); c1Chart3D1.Footer.Text = "Sample Footer Text"; c1Chart3D1.Footer.Compass = C1.Win.C1ChartBase.CompassEnum.South; c1Chart3D1.Footer.Location = new Point((C1Chart3D1.Size.Width - 120), -1); |