Back to Devexpress

TdxChartCustomLegend.MaxWidthPercent Property

vcl-dxchartcore-dot-tdxchartcustomlegend-aeea73d8.md

latest2.8 KB
Original Source

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

TypeDescription
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

ValueExample[1]
100 ( default )[2]
50[3]

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

TdxChartCustomLegend.Direction Property

TdxChartCustomLegend.MaxCaptionWidth Property

TdxChartCustomLegend Class

TdxChartCustomLegend Members

dxChartCore Unit