Class
LegendItem

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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.ChartView.dll

Syntax:

cs-api-definition
public class LegendItem : INotifyPropertyChanged

Inheritance: objectLegendItem

Implements: INotifyPropertyChanged

Constructors

LegendItem()

Initializes a new instance of the LegendItem class.

Declaration

cs-api-definition
public LegendItem()

LegendItem(UIChartElement)

Initializes a new instance of the LegendItem class.

Declaration

cs-api-definition
public LegendItem(UIChartElement element)

Parameters

element

UIChartElement

The element this legend item represents.

Properties

Element

Gets the element that this legend item represents.

Declaration

cs-api-definition
public UIChartElement Element { get; }

Property Value

UIChartElement

Title

Gets and set the Legend Title.

Declaration

cs-api-definition
public string Title { get; set; }

Property Value

string

Methods

GetLegendTitle()

Gets the legend title.

Declaration

cs-api-definition
protected virtual string GetLegendTitle()

Returns

string

OnPropertyChanged(string)

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(string propertyName)

Parameters

propertyName

string

SetLegendTitle(string)

Sets the legend title.

Declaration

cs-api-definition
protected virtual void SetLegendTitle(string title)

Parameters

title

string

The title.

Events

PropertyChanged

Occurs when a property value changes.

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged