Dundas Chart for Windows Forms
Label Class
Members  See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace : Label Class


Represents a label.


Label class contains properties which define visual appearance of the axis labels, their interval and position. This class is also responsible for calculating the position of all the labels and drawing them.

Syntax

Visual Basic (Declaration)  
Public Class Label 
   Inherits ChartElement
Visual Basic (Usage) Copy Code
Dim instance As Label
C#  
public class Label : ChartElement 

Remarks

This class represents a chart label, and is exposed as:

  • CustomLabel objects (custom labels displayed along an axis);
  • as data point labels using the Label property of DataPoint and Series objects;
  • and as axis labels of DataPoint and Series objects using the AxisLabel property (axis labels displayed on a per series or per data point basis).

There are two axis label rows, and the labels along the first row are generated one of three ways: automatically from the axis scale; from Series and/or DataPoint objects; or CustomLabels. For further details see the Labeling Methods topic. Note that if one CustomLabel object is used for the first label row then no axis labels will be automatically generated.

The second axis label row can only be comprised of custom labels, and this row is generally used to group together labels along the first row.

Axis labels can:

Many of the properties of this class deal with entire rows of axis labels (e.g. the OffsetLabels property enables/disables offsets for an entire row of axis labels). However, custom labels are drawn on a label-by-label basis.

Refer to the numerous "How To" articles in the "See Also" section below to find out how to accomplish a specific labelling task.

Inheritance Hierarchy

System.Object
   Dundas.Charting.WinControl.ChartElement
      Dundas.Charting.WinControl.Label

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.