A newer version of this page is available. Switch to the current version.

CustomizeLegendEventArgs.MaxHorizontalPercentage Property

Specifies the legend's maximum horizontal percentage.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll


public double MaxHorizontalPercentage { get; set; }
Public Property MaxHorizontalPercentage As Double

Property Value

Type Description

A Double value, specifying the legend's horizontal limit. This value is assigned to the CustomizeLegendEventArgs.MaxHorizontalPercentage property.


When a familiar data source (such as the PivotGridControl) is assigned to the ChartControl.DataSource property, the Legend.MaxHorizontalPercentage and Legend.MaxVerticalPercentage properties of the chart's legend are auto-adjusted, and it's impossible to customize these properties at design time.

Use the MaxHorizontalPercentage and CustomizeLegendEventArgs.MaxVerticalPercentage properties, to set a value for these properties at runtime, in the ChartControl.CustomizeLegend (or, WebChartControl.CustomizeLegend) event handler.

See Also