Dundas Chart for ASP.NET
LegendItem Class
Members  See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace : LegendItem Class


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.

Object Model



Syntax

Visual Basic (Declaration)  
Public Class LegendItem 
   Implements A 
Visual Basic (Usage) Copy Code
Dim instance As LegendItem
C#  
public class LegendItem : A  

Remarks

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.

Inheritance Hierarchy

System.Object
   Dundas.Charting.WebControl.LegendItem

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

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.