New to Telerik ReportingStart a free 30-day trial

Specifies the legend for the graph.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
[AIAssistantDescription("Graph legend showing label for each series instance's color.")]
public class GraphLegend : GraphItem

Inheritance: objectReportObjectGraphItemGraphLegend

Inherited Members GraphItem.BoundsGraphItem.LocationGraphItem.SizeGraphItem.TopGraphItem.LeftGraphItem.WidthGraphItem.HeightGraphItem.StyleGraphItem.IsInsidePlotAreaReportObject.ToString(string[])...

Constructors

C#
public GraphLegend()

Properties

Specifies the position of the GraphLegend.

C#
[AIAssistantDescription("Specifies the position of the Graph Legend in the graph bounds. (default: RightCenter) -> the legend will be placed to the right of the graph and centered vertically.")]
public GraphItemPosition Position { get; set; }

Title

string

Specifies the text for the legend's title.

C#
[AIAssistantDescription("A title appearing above the legend items. A literal string or data-grounded expression if needed.")]
public string Title { get; set; }
Property Value:

A string started with "=" is interpreted as an expression to calculate the real data, otherwise - literal string. Supports embedded expressions also.

Specifies the Style for the legend's title.

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public Style TitleStyle { get; }