Class ChartLegend
This class represents the chart legend.
Inheritance
Namespace: Telerik.Windows.Controls.Charting
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public class ChartLegend : HeaderedItemsControl, IChartThemable, IInteractionManager, IInteractiveElement, ILogicalItem
Constructors
ChartLegend()
Fields
HeaderFontWeightProperty
Identifies the Header
Declaration
public static readonly DependencyProperty HeaderFontWeightProperty
Field Value
System.
|
ItemsPanelOrientationProperty
Identifies the Items
Declaration
public static readonly DependencyProperty ItemsPanelOrientationProperty
Field Value
System.
|
LegendItemMarkerShapeProperty
Identifies the Legend
Declaration
public static readonly DependencyProperty LegendItemMarkerShapeProperty
Field Value
System.
|
LegendItemStyleProperty
Identifies the Legend
Declaration
public static readonly DependencyProperty LegendItemStyleProperty
Field Value
System.
|
ReverseLegendItemsOrderProperty
Identifies the Reverse
Declaration
public static readonly DependencyProperty ReverseLegendItemsOrderProperty
Field Value
System.
|
UseAutoGeneratedItemsProperty
Identifies the Use
Declaration
public static readonly DependencyProperty UseAutoGeneratedItemsProperty
Field Value
System.
|
Properties
HeaderFontWeight
Gets or sets FontWeight for the HeaderTemplate of the ChartLegend.
Declaration
public FontWeight HeaderFontWeight { get; set; }
Property Value
System. The default value is bold. |
Items
Gets or sets the custom (user-defined) legend items to display in the legend control.
Declaration
public ChartLegendItemCollection Items { get; set; }
Property Value
ItemsPanelOrientation
Gets or sets the items panel orientation.
Declaration
public Orientation ItemsPanelOrientation { get; set; }
Property Value
System. The items panel orientation. |
LegendItemMarkerShape
Gets or sets the legend item marker shape.
Declaration
public MarkerShape LegendItemMarkerShape { get; set; }
Property Value
Marker The legend item marker shape. |
LegendItemStyle
Gets or sets the legend item style.
Declaration
public Style LegendItemStyle { get; set; }
Property Value
System. The legend item style. |
ReverseLegendItemsOrder
Gets or sets a value that indicates whether to reverse the order of ChartLegendItems.
Declaration
public bool ReverseLegendItemsOrder { get; set; }
Property Value
System.
|
UseAutoGeneratedItems
Gets or sets a value that indicates whether the legend should display auto-generated legend items or only custom (user-defined) items.
Declaration
public bool UseAutoGeneratedItems { get; set; }
Property Value
System. The default value is true. |
Methods
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application
code or internal processes (such as a rebuilding layout pass) call
System.
Declaration
public override void OnApplyTemplate()
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
PrepareContainerForItemOverride(DependencyObject, Object)
Prepares the specified element to display the specified item.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
System. Element used to display the specified item. |
System. Specified item. |
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()