Represents a legend item, which is stored in the LegendItemsCollection class.
LegendItem class presents a single item (row) in the legend. It contains properties which describe visual appearance and content of the legend item.
Visual Basic (Declaration) | |
---|---|
Public Class LegendItem Implements A |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class LegendItem : A |
The LegendItem class represents a legend item, which can be either a "default" or "custom" item:
- "Default" legend items are automatically inserted into the legend for either data series or data points (default entries for pie and doughnut charts represent the plotted data points, while entries for all other chart types represent the plotted series). These legend entries by default use the data point or series color for the symbol color, and the name of the series or data point for the legend item text.
Default legend items can be customized or deleted at run-time using the CustomizeLegend event (Enterprise Edition only ).
- "Custom" legend items have user-defined text, symbol color, etc., and unlike the default entries are not connected with the plotted data. These custom legend items can be added at either design-time or run-time using the Legend object's CustomItems property.
Legend symbols can be rectangles, lines or markers, depending on the Style property setting of a LegendItem object.
The text of a custom legend item is determined by the Name property.
System.Object
Dundas.Charting.WebControl.LegendItem
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