vcl-dxchartcore-dot-tdxchartcustomlegend-18f2b495.md
Specifies the maximum height, as a percentage of the parent diagram or Chart control height.
property MaxHeightPercent: Single read; write;
| Type | Description |
|---|---|
| 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.
|
Use MaxWidthPercent and MaxHeightPercent properties to limit maximum legend pane dimensions.
| Value | Example[1] |
|---|---|
100 ( default )[2] | |
60[3] |
The MaxHeightPercent property setter limits an assigned value with the range between 0 and 100.
The MaxHeightPercent property’s default value is the DefaultMaxSizePercent typed constant.
Footnotes
This example demonstrates different MaxHeightPercent property values on the same legend pane under the following conditions:
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.
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