Skip to main content
A newer version of this page is available. .

TdxChartCustomLegend.MaxHeightPercent Property

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

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 within the range between 0 and 100.

Remarks

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

Examples

Value Example[1]
100 (default)[2] VCL Chart Control: The Default Maximum Legend Pane Height
60[3] VCL Chart Control: The Reduced Maximum Legend Pane Height

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