LegendCell LegendCell LegendCell LegendCell Class

Definition

Represents a legend cell in a legend item.

public ref class LegendCell : System::Web::UI::DataVisualization::Charting::ChartNamedElement, System::Web::UI::DataVisualization::Charting::IChartMapArea
public class LegendCell : System.Web.UI.DataVisualization.Charting.ChartNamedElement, System.Web.UI.DataVisualization.Charting.IChartMapArea
type LegendCell = class
    inherit ChartNamedElement
    interface IChartMapArea
Public Class LegendCell
Inherits ChartNamedElement
Implements IChartMapArea
Inheritance
Implements

Remarks

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.

Constructors

LegendCell() LegendCell() LegendCell() LegendCell()

Initializes a new instance of the LegendCell class

LegendCell(LegendCellType, String) LegendCell(LegendCellType, String) LegendCell(LegendCellType, String) 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) LegendCell(LegendCellType, String, ContentAlignment) LegendCell(LegendCellType, String, ContentAlignment) 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.

LegendCell(String) LegendCell(String) LegendCell(String) LegendCell(String)

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

Properties

Alignment Alignment Alignment Alignment

Gets or sets the alignment of the legend cell contents.

BackColor BackColor BackColor BackColor

Gets or sets the background color of the legend cell.

CellSpan CellSpan CellSpan CellSpan

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

CellType CellType CellType CellType

Gets or sets the legend cell type.

Font Font Font Font

Gets or sets the font for the legend cell.

ForeColor ForeColor ForeColor ForeColor

Gets or sets the text color of the legend cell.

Image Image Image Image

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

ImageSize ImageSize ImageSize ImageSize

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

ImageTransparentColor ImageTransparentColor ImageTransparentColor ImageTransparentColor

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

Legend Legend Legend Legend

Gets the legend in which this cell belongs to.

LegendItem LegendItem LegendItem LegendItem

Gets the legend item in which this cell belongs to.

MapAreaAttributes MapAreaAttributes MapAreaAttributes MapAreaAttributes

Gets or sets the map area attributes of the legend cell.

Margins Margins Margins Margins

Gets or sets the margins of the legend cell.

Name Name Name Name

Gets or sets the name of the legend cell.

PostBackValue PostBackValue PostBackValue PostBackValue

Gets or sets a postback value that can be processed on a Click event.

SeriesSymbolSize SeriesSymbolSize SeriesSymbolSize SeriesSymbolSize

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

Tag Tag Tag Tag

Gets or sets an object associated with this chart element.

(Inherited from ChartElement)
Text Text Text Text

Gets or sets the legend cell text.

ToolTip ToolTip ToolTip ToolTip

Gets or sets the tooltip text for the legend cell.

Url Url Url Url

Gets or sets the URL target of the legend cell.

Methods

Dispose() Dispose() Dispose() Dispose()

Releases the resources used by the ChartElement.

(Inherited from ChartElement)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources used by the LegendCell and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified Object is equal to the current ChartElement.

(Inherited from ChartElement)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns a hash function for a particular type.

(Inherited from ChartElement)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current Object.

(Inherited from ChartElement)

Applies to