Legend Properties
Represents a chart’s legend.Name | Description |
---|---|
AlignmentHorizontal | Gets or sets the legend’s horizontal alignment within the chart control. |
AlignmentVertical | Gets or sets the legend’s vertical alignment within the chart control. |
Antialiasing | Obsolete. Gets or sets whether antialising is applied to the legend’s contents. |
BackColor | Gets or sets the legend’s background color. |
BackImage | Gets the background image settings. |
Border | Gets the legend’s border settings. |
CrosshairContentOffset | The offset between default legend item’s content and the Crosshair Cursor’s legend content. |
CustomItems | Returns the custom legend item collection. |
Direction | Gets or sets the direction in which the names of the series are displayed within the legend. |
DockTarget | Specifies the element (chart or pane), to which the legend is docked. |
DockTargetName | For internal use. Supports serialization of the Legend.DockTarget property. |
EnableAntialiasing | Gets or sets a value indicating whether antialiasing is enabled for the chart legend. |
EquallySpacedItems | Gets or sets a value indicating whether the legend items are arranged in left-aligned columns. |
FillStyle | Gets the legend’s background fill style. |
Font | Gets or sets the font used to display the legend’s contents. |
HorizontalIndent | Specifies the horizontal indent between legend items. |
IsDisposed | Gets a value indicating whether the control has been disposed of. Inherited from ChartElement. |
ItemVisibilityMode | Gets or sets the mode used to display custom and automatically generated items. |
Margins | Specifies the indent between the legend‘s edge and other chart elements (e.g. diagram and chart titles), in pixels. |
MarkerMode | Gets or sets the appearance of the chart legend markers. |
MarkerOffset | Gets or sets the offset between a marker and check box, when both are displayed in the legend. |
MarkerSize | Gets or sets the marker’s height and width. |
MarkerVisible | Specifies whether the legend markers are visible. |
MaxCrosshairContentHeight | Gets or sets the maximum height for the Crosshair’s content in the legend. |
MaxCrosshairContentWidth | Gets or sets the maximum width for the Crosshair’s content in the legend. |
MaxHorizontalPercentage | Gets or sets the legend’s maximum possible width (in percents). |
MaxVerticalPercentage | Gets or sets the legend’s maximum possible height (in percents). |
Name | Gets or sets the name of the chart element. Inherited from ChartElementNamed. |
Padding | Specifies the internal space between the legend‘s content and its edge, in pixels. |
Shadow | Gets the legend’s shadow settings. |
SpacingHorizontal | Obsolete. Gets or sets the horizontal spacing between the legend’s elements. |
SpacingVertical | Obsolete. Gets or sets the vertical spacing between the legend’s elements. |
Tag | Gets or sets the object that contains data related to the chart element. Inherited from ChartElement. |
TextColor | Gets or sets the legend’s text color. |
TextOffset | Specifies the indent between legend markers and their text. |
TextVisible | Specifies whether the legend items’ text is visible. |
Title | Returns the legend title settings. |
UseCheckBoxes | Specifies a value which determines whether to use checkboxes instead of markers on a chart legend for all legend items. |
VerticalIndent | Specifies the vertical indent between legend items. |
Visibility | Specifies whether to show the legend on a chart. |
Visible | Obsolete. Specifies whether the legend is visible. |
See Also