TdxChartCustomLabels.MaxWidth Property
Specifies the maximum width (in pixels) of value labels.
Declaration
property MaxWidth: Single read; write;
Property Value
| Type | Description |
|---|---|
| Single | The maximum width (in pixels) of value labels at |
Remarks
Use the MaxWidth property value to limit the maximum width of value labels. If text length exceeds the specified limit in a label, the label displays text on multiple lines. To limit the number of lines in value labels, you can use the MaxLineCount property.
Property Values and Scaling
The MaxWidth property specifies the base maximum width (in pixels) of value labels that corresponds to 96 DPI. The Chart control’s draw routines multiply the MaxWidth property value by the current scale factor and round the result to the nearest integer to calculate the actual maximum label width on the target screen.
Default Value
The MaxWidth property’s default value is 0.
The default MaxWidth property value indicates that the width of value labels is not limited.