Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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.

#Remarks

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

#Property Value 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