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