This documentation is archived and is not being maintained.
Legend Properties
Visual Studio 2010
The Legend type exposes the following members.
| Name | Description | |
|---|---|---|
|
Alignment | Gets or sets the alignment of the legend. |
|
AutoFitMinFontSize | Gets or sets the minimum font size that can be used by the autofitting algorithm for the legend text. |
|
BackColor | Gets or sets the background color of a legend. |
|
BackGradientStyle | Gets or sets the orientation for the background gradient of a legend. Also determines whether a gradient is used. |
|
BackHatchStyle | Gets or sets the hatching style of a legend. |
|
BackImage | Gets or sets the background image of a legend. |
|
BackImageAlignment | Gets or sets the background image alignment used for the Unscaled drawing mode. |
|
BackImageTransparentColor | Gets or sets a color that will be replaced with a transparent color when the background image is drawn. |
|
BackImageWrapMode | Gets or sets the drawing mode of a legend background image. |
|
BackSecondaryColor | Gets or sets the secondary color of a legend background. |
|
BorderColor | Gets or sets the border color of a legend. |
|
BorderDashStyle | Gets or sets the border style of a legend. |
|
BorderWidth | Gets or sets the border width of a legend. |
|
CellColumns | Gets the LegendCellColumnCollection for a legend. |
|
CustomItems | Gets a T[:System.Web.UI.DataVisualization.Charting.LegendItemsCollection] object used for custom legend items. |
|
DockedToChartArea | Gets or sets the name of the ChartArea where the legend will be docked. |
|
Docking | Gets or sets a value that determines where the legend is docked. |
|
Enabled | Gets or sets a value that determines if the legend is enabled. |
|
Font | Gets or sets a Font object, which is used to set font properties of the legend. |
|
ForeColor | Gets or sets the color of the legend text. |
|
HeaderSeparator | Gets or sets the visual separator type for the legend header. |
|
HeaderSeparatorColor | Gets or sets the color of the separator for the legend header. |
|
InsideChartArea | Gets or sets the name of the chart area in which the legend is drawn. |
|
InterlacedRows | Gets or sets a flag that indicates if legend rows will be drawn with interlaced background color. |
|
InterlacedRowsColor | Gets or sets the background color of the legend's interlaced rows. |
|
IsDockedInsideChartArea | Gets or sets a flag that indicates whether the legend is docked inside or outside the chart area. |
|
IsEquallySpacedItems | Gets or sets a flag that indicates whether all legend items are equally spaced. |
|
IsTextAutoFit | Gets or sets a flag that indicates if the legend text is automatically sized. |
|
ItemColumnSeparator | Gets or sets the visual separator type for the legend table columns. |
|
ItemColumnSeparatorColor | Gets or sets the color of the legend table column separator. |
|
ItemColumnSpacing | Gets or sets the legend table column spacing. |
|
LegendItemOrder | Gets or sets a flag that specifies the order in which legend items are displayed. This property only affects legend items automatically added for the chart series; it has no effect on custom legend items. |
|
LegendStyle | Gets or sets the style of the legend. |
|
MaximumAutoSize | Gets or sets the maximum size of the legend, measured as a percentage of the chart area. This value is used by the automatic layout algorithm. |
|
Name | Gets or sets the name of the legend. (Overrides ChartNamedElement::Name.) |
|
Position | Gets or sets an ElementPosition object, which can be used to get or set the position of the legend. |
|
ShadowColor | Gets or sets the shadow color of the legend. |
|
ShadowOffset | Gets or sets the shadow offset, in pixels, of the legend. |
|
TableStyle | Gets or sets the legend table style. |
|
Tag | Gets or sets an object associated with this chart element. (Inherited from ChartElement.) |
|
TextWrapThreshold | Gets or sets the number of characters that can be sequentially displayed in the legend before the text is wrapped. |
|
Title | Gets or sets the text of the legend title. |
|
TitleAlignment | Gets or sets the alignment of the legend title. |
|
TitleBackColor | Gets or sets the background color of the legend title. |
|
TitleFont | Gets or sets the font for the legend title. |
|
TitleForeColor | Gets or sets the text color of the legend title. |
|
TitleSeparator | Gets or sets the visual separator type for the legend title. |
|
TitleSeparatorColor | Gets or sets the color of the legend title separator. |
Show: