Skip to main content
A newer version of this page is available. .
All docs
V21.2

LegendBase Members

The base class for chart legends.

Constructors

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

Properties

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.
BackColor Gets or sets the legend’s background color.
BackImage Gets the background image settings.
Border Gets the legend’s border settings.
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.
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.
ItemVisibilityMode
Margins Specifies the indent between the legend‘s edge and other chart elements (e.g. diagram and chart titles), in pixels.
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.
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.
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.
VerticalIndent Specifies the vertical indent between legend items.
Visibility Specifies whether to show the legend on a chart.

Methods

Name Description
Assign(ChartElement) Copies all the settings from the LegendBase 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.
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