Skip to main content

Legend Members

Represents a chart control’s legend.

Constructors

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

Fields

Name Description
HorizontalPositionProperty static Identifies the Legend.HorizontalPosition dependency property.
IsMovableInsideDiagramProperty static Identifies the Legend.IsMovableInsideDiagram dependency property.
ItemTemplateProperty static Identifies the Legend.ItemTemplate dependency property.
MaximumRowsOrColumnsProperty static Identifies the Legend.MaximumRowsOrColumns dependency property.
OrientationProperty static Identifies the Legend.Orientation dependency property.
ReverseItemsProperty static Identifies the Legend.ReverseItems dependency property.
VerticalPositionProperty static Identifies the Legend.VerticalPosition dependency property.

Properties

Name Description
HorizontalPosition Gets or sets the legend’s horizontal position within the chart control.
IsMovableInsideDiagram Gets or sets a value indicating if a legend is movable inside a chart area at runtime.
ItemTemplate Gets or sets the template for the legend items.
MaximumRowsOrColumns Gets or sets the maximum number of rows allowed (if a legend displays its items vertically) or columns (if a legend displays its items horizontally).
Orientation Specifies whether the legend items are vertically or horizontally oriented.
ReverseItems Gets or sets a value indicating whether the order of legend items is reversed.
VerticalPosition Gets or sets the legend’s vertical position within the chart control.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. 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 a string that represents the current object. Inherited from Object.

Events

Name Description
PropertyChanged Occurs every time any of the ChartElement class properties has changed its value. Inherited from ChartElement.
See Also