New to Telerik UI for WinFormsStart a free 30-day trial

Data representation of the legend items displayed in the chart legend.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.ChartView.dll

Syntax:

C#
public class LegendItem : INotifyPropertyChanged

Inheritance: objectLegendItem

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the LegendItem class.

C#
public LegendItem()

Initializes a new instance of the LegendItem class.

C#
public LegendItem(UIChartElement element)
Parameters:elementUIChartElement

The element this legend item represents.

Properties

Gets the element that this legend item represents.

C#
public UIChartElement Element { get; }

Gets and set the Legend Title.

C#
public string Title { get; set; }

Methods

Gets the legend title.

C#
protected virtual string GetLegendTitle()
Returns:

string

C#
protected virtual void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

Sets the legend title.

C#
protected virtual void SetLegendTitle(string title)
Parameters:titlestring

The title.

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged