Dundas Chart for Windows Forms
LegendItem Class
Members  See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl 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 
Visual Basic (Usage) Copy Code
Dim instance As LegendItem
C#  
public class LegendItem 

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.
     
  • "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.WinControl.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

© 2009 All Rights Reserved.