Back to Devexpress

CustomizeLegendEventArgs.MaxVerticalPercentage Property

corelibraries-devexpress-dot-xtracharts-dot-customizelegendeventargs-d1fe4368.md

latest3.1 KB
Original Source

CustomizeLegendEventArgs.MaxVerticalPercentage Property

Specifies the legend‘s maximum vertical percentage.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

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

Property Value

TypeDescription
Double

A Double value, specifying the legend’s vertical limit. This value is assigned to the CustomizeLegendEventArgs.MaxVerticalPercentage 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 CustomizeLegendEventArgs.MaxHorizontalPercentage and MaxVerticalPercentage properties, to set a value to these properties at runtime, in the ChartControl.CustomizeLegend (or, WebChartControl.CustomizeLegend event handler.

For more information, see Pivot Charting (Integration with a Pivot Grid Control).

See Also

MaxHorizontalPercentage

Legends Alignment and Layout

PivotChartingCustomizeLegend

Integrate the WinForms Chart with the Pivot Grid Control

CustomizeLegendEventArgs Class

CustomizeLegendEventArgs Members

DevExpress.XtraCharts Namespace