Back to Devexpress

CustomizeLegendEventArgs.MaxHorizontalPercentage Property

corelibraries-devexpress-dot-xtracharts-dot-customizelegendeventargs-6778211f.md

latest2.9 KB
Original Source

CustomizeLegendEventArgs.MaxHorizontalPercentage Property

Specifies the legend‘s maximum horizontal percentage.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Property Value

TypeDescription
Double

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

|

Remarks

When a familiar data source (such as the PivotGridControl) is assigned to the ChartControl.DataSource property, the LegendBase.MaxHorizontalPercentage and LegendBase.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

MaxVerticalPercentage

Legends Alignment and Layout

PivotChartingCustomizeLegend

Integrate the WinForms Chart with the Pivot Grid Control

CustomizeLegendEventArgs Class

CustomizeLegendEventArgs Members

DevExpress.XtraCharts Namespace