This documentation is archived and is not being maintained.
LegendCell Class
Visual Studio 2010
Represents a legend cell in a legend item.
System::Object
System.Windows.Forms.DataVisualization.Charting::ChartElement
System.Windows.Forms.DataVisualization.Charting::ChartNamedElement
System.Windows.Forms.DataVisualization.Charting::LegendCell
System.Windows.Forms.DataVisualization.Charting::ChartElement
System.Windows.Forms.DataVisualization.Charting::ChartNamedElement
System.Windows.Forms.DataVisualization.Charting::LegendCell
Assembly: System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)
The LegendCell type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | LegendCell() | Initializes a new instance of the LegendCell class |
![]() | LegendCell(String) | Initializes a new instance of the LegendCell class with a text parameter that specifies the cell text or image name. |
![]() | LegendCell(LegendCellType, String) | Initializes a new instance of the LegendCell class with the specified cell type and a text parameter that specifies the cell text or image name. |
![]() | LegendCell(LegendCellType, String, ContentAlignment) | Initializes a new instance of the LegendCell class with the specified cell type, content alignment, and a text parameter that specifies the cell text or image name. |
| Name | Description | |
|---|---|---|
![]() | Alignment | Gets or sets the alignment of the legend cell contents. |
![]() | BackColor | Gets or sets the background color of the legend cell. |
![]() | CellSpan | Gets or sets the number of horizontal cells used to draw the contents of the legend cell. |
![]() | CellType | Gets or sets the legend cell type. |
![]() | Font | Gets or sets the font for the legend cell. |
![]() | ForeColor | Gets or sets the text color of the legend cell. |
![]() | Image | Gets or sets the name of the image in a legend cell. |
![]() | ImageSize | Gets or sets the size of the image in a legend cell. |
![]() | ImageTransparentColor | Gets or sets a color which will be replaced with a transparent color when the image is drawn. |
![]() | Legend | Gets the legend in which this cell belongs. |
![]() | LegendItem | Gets the legend item in which this cell belongs. |
![]() | Margins | Gets or sets the margins of the legend cell. |
![]() | Name | Gets or sets the name of the legend cell. (Overrides ChartNamedElement::Name.) |
![]() | SeriesSymbolSize | Gets or sets the size of the series symbol that is displayed in the legend cell. |
![]() | Tag | Gets or sets an object associated with this chart element. (Inherited from ChartElement.) |
![]() | Text | Gets or sets the legend cell text. |
![]() | ToolTip | Gets or sets the tooltip text for the legend cell. |
| Name | Description | |
|---|---|---|
![]() | Dispose() | Releases the resources used by the ChartElement. (Inherited from ChartElement.) |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the LegendCell and optionally releases the managed resources. (Overrides ChartElement::Dispose(Boolean).) |
![]() | Equals | Determines whether the specified Object is equal to the current ChartElement. (Inherited from ChartElement.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Returns a hash function for a particular type. (Inherited from ChartElement.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current Object. (Inherited from ChartElement.) |
A legend is populated with legend items, which are represented by the LegendItemsCollection. These legend items consist of individual legend cells, which are in turn represented by the LegendCellCollection.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
