The Label Collection Editor is used for adding or modifying Chart labels on the data series. ChartLabels are used for labeling an important data point on the data series. For more information on using chart labels, see Charting Labels.
Properties available in the Label Collection Editor
The following properties are available for the user in the Label Collection Editor at design time or they can be used in the ChartLabels class at run time:
Members | Description |
---|---|
AttachMethod | Gets or sets the label attachment method. |
AttachMethodData | Gets or sets the fill color. |
GroupIndex | Gets or sets the group index of the data point to attach a label when the label AttachMethod property specifies DataIndex attachment. |
PointIndex | Gets or sets the point index of the data point to attach a label when the label AttachMethod property specifies DataIndex attachment. |
SeriesIndex | Gets or sets the series index of the data point to attach a label when the label AttachMethod property specifies Coordinate or DataCoordinate attachment. |
X | Gets or sets the X coordinate (data or client) when the label AttachMethod property specifies Coordinate or DataCoordinate attachment. |
Y | Gets or sets the Y coordinate (data or client) when the label AttachMethod property species Coordinate or DataCoordinate attachment. |
Compass | Gets or sets the position of the label relative its specified location. |
Connected | Gets or sets whether a connecting line is drawn to an associated data point. |
Image | Gets or sets the image. |
Location | Gets the location of the label in chart control client coordinates. |
Name | Gets or sets the label name. |
Offset | Gets or sets the offset distance in pixels from an associated data point. |
RotationOverride | This property allows the specification of the clockwise rotation angle around the connection point of the label. The property overrides the RotationEnum of the label Style object, and does NOT apply to Radial or RadialText compass values. |
Size | Gets or sets the size of the label in chart control client coordinates. |
SizeDefault | Gets or sets the default size of the label. |
Style | Gets the Style object of the label. |
AutoWrap | Gets or sets whether the text is automatically wrapped. |
BackColor | Gets or sets the background color. |
BackColor2 | Gets or sets the gradient or hatch background. |
Border | Gets the border object. |
BorderStyle | Gets or sets the border style. |
Border.Color | Gets or sets the border color. |
Rounding | Gets the Rounding object that controls the rounding of corners. |
Thickness | Gets or sets the border thickness. |
Font | Gets or sets the font object. |
ForeColor | Gets or sets the foreground color. |
GradientStyle | Defines the style of the background gradient filling. |
HatchStyle | Defines the style of the background hatch filling. |
HorizontalAlignment | Gets or sets the text horizontal alignment. |
ImageAlignment | Gets or sets the image alignment. |
Opaque | Gets or sets the opaqueness of the background. |
Rotation | Gets or sets the text orientation. |
VerticalAlignment | Gets or sets the text vertical alignment. |
Text | Gets or sets the text of the label. |
TooltipText | Gets or sets the tooltip text. |
Visible | Gets or sets the label visibility. |