Skip to main content

Legend Members

Represents a chart’s legend.

Constructors

Name Description
Legend() Initializes a new instance of the Legend class with the default settings.
Legend(String) Initializes a new instance of the Legend class with the specified name.

Properties

Name Description
AlignmentHorizontal Gets or sets the legend’s horizontal alignment within the chart control. Inherited from LegendBase.
AlignmentVertical Gets or sets the legend’s vertical alignment within the chart control. Inherited from LegendBase.
Antialiasing Obsolete. Gets or sets whether antialising is applied to the legend’s contents.
BackColor Gets or sets the legend’s background color. Inherited from LegendBase.
BackImage Gets the background image settings. Inherited from LegendBase.
Border Gets the legend’s border settings. Inherited from LegendBase.
CrosshairContentOffset The offset between default legend item’s content and the Crosshair Cursor’s legend content.
CustomItems Returns the custom legend item collection. Inherited from LegendBase.
Direction Gets or sets the direction in which the names of the series are displayed within the legend. Inherited from LegendBase.
DockTarget Specifies the element (chart or pane) to which the legend is docked.
DockTargetName For internal use. Supports serialization of the Legend.DockTarget property.
DXFont Gets or sets the font used to display the legend’s content. Inherited from LegendBase.
EnableAntialiasing Gets or sets a value indicating whether antialiasing is enabled for the chart legend. Inherited from LegendBase.
EquallySpacedItems Gets or sets a value indicating whether the legend items are arranged in left-aligned columns. Inherited from LegendBase.
FillStyle Gets the legend’s background fill style. Inherited from LegendBase.
Font Gets or sets the font used to display the legend’s content. Inherited from LegendBase.
HorizontalIndent Specifies the horizontal indent between legend items. Inherited from LegendBase.
ItemVisibilityMode Specifies how to display custom and automatically generated items in a legend. Inherited from LegendBase.
LegendID Inherited from LegendBase.
Margins Specifies the indent between the legend‘s edge and other chart elements (e.g. diagram and chart titles), in pixels. Inherited from LegendBase.
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. Inherited from LegendBase.
MarkerSize Gets or sets the marker’s height and width. Inherited from LegendBase.
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). Inherited from LegendBase.
MaxVerticalPercentage Gets or sets the legend’s maximum possible height (in percents). Inherited from LegendBase.
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. Inherited from LegendBase.
Shadow Gets the legend’s shadow settings. Inherited from LegendBase.
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. Inherited from LegendBase.
TextOffset Specifies the indent between legend markers and their text. Inherited from LegendBase.
TextVisible Specifies whether the legend items’ text is visible. Inherited from LegendBase.
Title Returns the legend title settings. Inherited from LegendBase.
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. Inherited from LegendBase.
Visibility Specifies whether to show the legend on a chart. Inherited from LegendBase.
Visible Obsolete. Specifies whether the legend is visible.

Methods

Name Description
Assign(ChartElement) Copies all the settings from the Legend object passed as the parameter.
Clone() Creates a copy of the current ChartElement object. Inherited from ChartElement.
Dispose() Releases all resources used by the LegendBase object. Inherited from LegendBase.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns the textual representation of the named chart element. Inherited from ChartElementNamed.
See Also