Back to Devexpress

TdxChartCustomLegend.MaxHeightPercent Property

vcl-dxchartcore-dot-tdxchartcustomlegend-18f2b495.md

latest2.8 KB
Original Source

TdxChartCustomLegend.MaxHeightPercent Property

Specifies the maximum height, as a percentage of the parent diagram or Chart control height.

Declaration

delphi
property MaxHeightPercent: Single read; write;

Property Value

TypeDescription
Single

The maximum legend pane height, as a percentage of the parent diagram or Chart control height.

The property value can be between 0 and 100.

|

Remarks

Use MaxWidthPercent and MaxHeightPercent properties to limit maximum legend pane dimensions.

Property Value Examples

ValueExample[1]
100 ( default )[2]
60[3]

Property Setter Behavior

The MaxHeightPercent property setter limits an assigned value with the range between 0 and 100.

Default Value

The MaxHeightPercent property’s default value is the DefaultMaxSizePercent typed constant.

Footnotes

  1. This example demonstrates different MaxHeightPercent property values on the same legend pane under the following conditions:

  2. The legend pane is populated with items from top to bottom. When the MaxHeightPercent property is set to 100, the legend pane can occupy the entire parent diagram or Chart control by height. The resulting legend pane layout consists of one column.

  3. The legend pane is populated with items from top to bottom, column by column from left to right. When the MaxWidthPercent property is set to 60, the legend pane can occupy only 60% of the parent diagram or Chart by height. The resulting legend pane consists of two columns because the legend pane height is limited.

See Also

TdxChartCustomLegend.Direction Property

TdxChartCustomLegend.MaxCaptionWidth Property

TdxChartCustomLegend Class

TdxChartCustomLegend Members

dxChartCore Unit