Back to Devexpress

Legend Members

corelibraries-devexpress-dot-xtracharts-dot-legend-dot-underscore-members.md

latest12.6 KB
Original Source

Legend Members

Represents a chart’s legend.

Constructors

NameDescription
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

NameDescription
AlignmentHorizontalGets or sets the legend’s horizontal alignment within the chart control. Inherited from LegendBase.
AlignmentVerticalGets or sets the legend’s vertical alignment within the chart control. Inherited from LegendBase.
AntialiasingObsolete. Gets or sets whether antialising is applied to the legend’s contents.
BackColorGets or sets the legend’s background color. Inherited from LegendBase.
BackImageGets the background image settings. Inherited from LegendBase.
BorderGets the legend’s border settings. Inherited from LegendBase.
CrosshairContentOffsetThe offset between default legend item’s content and the Crosshair Cursor’s legend content.
CustomItemsReturns the custom legend item collection. Inherited from LegendBase.
DirectionGets or sets the direction in which the names of the series are displayed within the legend. Inherited from LegendBase.
DockTargetSpecifies the element (chart or pane) to which the legend is docked.
DockTargetNameFor internal use. Supports serialization of the Legend.DockTarget property.
DXFontGets or sets the font used to display the legend’s content. Inherited from LegendBase.
EnableAntialiasingGets or sets a value indicating whether antialiasing is enabled for the chart legend. Inherited from LegendBase.
EquallySpacedItemsGets or sets a value indicating whether the legend items are arranged in left-aligned columns. Inherited from LegendBase.
FillStyleGets the legend’s background fill style. Inherited from LegendBase.
FontGets or sets the font used to display the legend’s content. Inherited from LegendBase.
HorizontalIndentSpecifies the horizontal indent between legend items. Inherited from LegendBase.
ItemVisibilityModeSpecifies how to display custom and automatically generated items in a legend. Inherited from LegendBase.
LegendIDInherited from LegendBase.
MarginsSpecifies the indent between the legend‘s edge and other chart elements (e.g. diagram and chart titles), in pixels. Inherited from LegendBase.
MarkerModeGets or sets the appearance of the chart legend markers.
MarkerOffsetGets or sets the offset between a marker and check box, when both are displayed in the legend. Inherited from LegendBase.
MarkerSizeGets or sets the marker’s height and width. Inherited from LegendBase.
MarkerVisibleSpecifies whether the legend markers are visible.
MaxCrosshairContentHeightGets or sets the maximum height for the Crosshair’s content in the legend.
MaxCrosshairContentWidthGets or sets the maximum width for the Crosshair’s content in the legend.
MaxHorizontalPercentageGets or sets the legend’s maximum possible width (in percents). Inherited from LegendBase.
MaxVerticalPercentageGets or sets the legend’s maximum possible height (in percents). Inherited from LegendBase.
NameGets or sets the name of the chart element. Inherited from ChartElementNamed.
PaddingSpecifies the internal space between the legend‘s content and its edge, in pixels. Inherited from LegendBase.
ShadowGets the legend’s shadow settings. Inherited from LegendBase.
SpacingHorizontalObsolete. Gets or sets the horizontal spacing between the legend’s elements.
SpacingVerticalObsolete. Gets or sets the vertical spacing between the legend’s elements.
TagGets or sets the object that contains data related to the chart element. Inherited from ChartElement.
TextColorGets or sets the legend’s text color. Inherited from LegendBase.
TextOffsetSpecifies the indent between legend markers and their text. Inherited from LegendBase.
TextVisibleSpecifies whether the legend items’ text is visible. Inherited from LegendBase.
TitleReturns the legend title settings. Inherited from LegendBase.
UseCheckBoxesSpecifies a value which determines whether to use checkboxes instead of markers on a chart legend for all legend items.
VerticalIndentSpecifies the vertical indent between legend items. Inherited from LegendBase.
VisibilitySpecifies whether to show the legend on a chart. Inherited from LegendBase.
VisibleObsolete. Specifies whether the legend is visible.

Methods

NameDescription
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) staticDetermines 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() protectedCreates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) staticDetermines 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

Legend Class

DevExpress.XtraCharts Namespace