LegendCell Class
TOC
Collapse the table of content
Expand the table of content

LegendCell Class

.NET Framework (current version)
 

Represents a legend cell in a legend item.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)


public class LegendCell : ChartNamedElement

NameDescription
System_CAPS_pubmethodLegendCell()

Initializes a new instance of the LegendCell class.

System_CAPS_pubmethodLegendCell(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.

System_CAPS_pubmethodLegendCell(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.

System_CAPS_pubmethodLegendCell(String)

Initializes a new instance of the LegendCell class with a text parameter that specifies the cell text or image name.

NameDescription
System_CAPS_pubpropertyAlignment

Gets or sets the alignment of the legend cell contents.

System_CAPS_pubpropertyBackColor

Gets or sets the background color of the legend cell.

System_CAPS_pubpropertyCellSpan

Gets or sets the number of horizontal cells used to draw the contents of the legend cell.

System_CAPS_pubpropertyCellType

Gets or sets the legend cell type that is used to define the contents of the legend cell.

System_CAPS_pubpropertyFont

Gets or sets the font for the legend cell.

System_CAPS_pubpropertyForeColor

Gets or sets the text color of the legend cell.

System_CAPS_pubpropertyImage

Gets or sets the name of the image in a legend cell.

System_CAPS_pubpropertyImageSize

Gets or sets the size of the image in a legend cell.

System_CAPS_pubpropertyImageTransparentColor

Gets or sets a color which will be replaced with a transparent color when the image is drawn.

System_CAPS_pubpropertyLegend

Gets the legend in which this cell belongs.

System_CAPS_pubpropertyLegendItem

Gets the legend item in which this cell belongs.

System_CAPS_pubpropertyMargins

Gets or sets the margins of the legend cell.

System_CAPS_pubpropertyName

Gets or sets the name of the legend cell.(Overrides ChartNamedElement.Name.)

System_CAPS_pubpropertySeriesSymbolSize

Gets or sets the size of the series symbol that is displayed in the legend cell.

System_CAPS_pubpropertyTag

Gets or sets an object associated with this chart element.(Inherited from ChartElement.)

System_CAPS_pubpropertyText

Gets or sets the legend cell text.

System_CAPS_pubpropertyToolTip

Gets or sets the tooltip text for the legend cell.

NameDescription
System_CAPS_pubmethodDispose()

Releases the resources used by the ChartElement.(Inherited from ChartElement.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the LegendCell and optionally releases the managed resources.(Overrides ChartElement.Dispose(Boolean).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified Object is equal to the current ChartElement.(Inherited from ChartElement.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Returns a hash function for a particular type.(Inherited from ChartElement.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

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.

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft