This documentation is archived and is not being maintained.

LegendCellColumn Class

Represents a cell column in a legend, which is used to extend the functionality of the default legend.

Namespace:  System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

Public Class LegendCellColumn _
	Inherits ChartNamedElement _
	Implements IChartMapArea

The LegendCellColumn type exposes the following members.

Public methodLegendCellColumnInitializes a new instance of the LegendCellColumn class.
Public methodLegendCellColumn(String, LegendCellColumnType, String)Initializes a new instance of the LegendCellColumn class with the specified header text, column type and column cell text.
Public methodLegendCellColumn(String, LegendCellColumnType, String, ContentAlignment)Initializes a new instance of the LegendCellColumn class with the specified header text, column type, column cell text and content alignment.

Public propertyAlignmentGets or sets the legend column content alignment.
Public propertyBackColorGets or sets the background color of the legend cell column.
Public propertyColumnTypeGets or sets the legend cell column type.
Public propertyFontGets or sets the font for the legend column text.
Public propertyForeColorGets or sets the text color of the legend cell column.
Public propertyHeaderAlignmentGets or sets the horizontal text alignment of the legend cell column header.
Public propertyHeaderBackColorGets or sets the background color for the legend cell column header.
Public propertyHeaderFontGets or sets the font used in the legend column header.
Public propertyHeaderForeColorGets or sets the color of the legend column header text (HeaderText property).
Public propertyHeaderTextGets or sets the text for the legend cell column header.
Public propertyLegendGets the legend in which this legend cell column belongs.
Public propertyMapAreaAttributesGets or sets the map area attributes of the legend cell column.
Public propertyMarginsGets or sets the margins of the legend cell column.
Public propertyMaximumWidthGets or sets the maximum width of the legend cell column.
Public propertyMinimumWidthGets or sets the minimum width of the legend cell column.
Public propertyNameGets or sets the name of the legend cell column. (Overrides ChartNamedElement.Name.)
Public propertyPostBackValueGets or sets the postback value that can be processed on a Click event.
Public propertySeriesSymbolSizeGets or sets the size of the series symbol displayed in a legend cell column.
Public propertyTagGets or sets an object associated with this chart element. (Inherited from ChartElement.)
Public propertyTextGets or sets the text of the legend cell column.
Public propertyToolTipGets or sets the tooltip text for the legend cell column.
Public propertyUrlGets or sets the URL target of the legend cell columns automatically generated from a series or data point.

Public methodDisposeReleases the resources used by the ChartElement. (Inherited from ChartElement.)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the LegendCellColumn and optionally releases the managed resources. (Overrides ChartElement.Dispose(Boolean).)
Public methodEqualsDetermines whether the specified Object is equal to the current ChartElement. (Inherited from ChartElement.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns a hash function for a particular type. (Inherited from ChartElement.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodShouldSerializeMarginsInfrastructure. Determines whether the property should be serialized. For internal use only.
Public methodToStringReturns a string that represents the current Object. (Inherited from ChartElement.)

Any number of cell columns can be placed in any order, which gives you the flexibility to extend the abilities of the default legend entries.

The legend cell columns are only applicable to items that are automatically generated from series or data points.

.NET Framework

Supported in: 4

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.

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