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.MaxWidthPercent Property

Specifies the maximum legend pane width, as a percentage of the parent diagram or Chart control width.

#Declaration

Delphi
property MaxWidthPercent: Single read; write;

#Property Value

Type Description
Single

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

The property value can be within the range between 0 to 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 Width
50[3] VCL Chart Control: The Reduced Maximum Legend Pane Width

#Property Setter Behavior

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

#Default Value

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

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

  2. The legend pane is populated with items from left to right row by row. When the MaxWidthPercent property is set to 100, the legend pane can occupy the entire parent diagram or Chart control by width. The resulting legend pane layout consists of four columns.

  3. The legend pane is populated with items from left to right row by row. When the MaxWidthPercent property is set to 50, the legend pane can occupy only a half of the parent diagram or Chart control by width. The resulting legend pane layout consists of two columns because the width is limited.

See Also