TdxChartCustomLegend.MaxHeightPercent Property
Declaration
property MaxHeightPercent: Single read; write;
Property Value
| 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 |
Remarks
Use MaxWidthPercent and MaxHeightPercent properties to limit maximum legend pane dimensions.
Property Value Examples
| Value | Example[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.
-
This example demonstrates different
MaxHeightPercentproperty values on the same legend pane under the following conditions:- The Direction property is set to TdxChartLegendDirection.TopToBottom.
- AlignmentHorz and AlignmentVert properties are set to TdxChartLegendAlignment.Default.
-
The legend pane is populated with items from top to bottom. When the
MaxHeightPercentproperty is set to100, 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
MaxWidthPercentproperty is set to60, 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.

