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

TdxChartLegendAppearance.CaptionOffset Property

Specifies the offset (in pixels) of legend item captions from the corresponding glyphs.

#Declaration

Delphi
property CaptionOffset: Single read; write;

#Property Value

Type Description
Single

The offset (in pixels) of legend item captions from the corresponding glyphs at 96 DPI.

#Remarks

Use the CaptionOffset property to adjust the distance between legend item captions and the corresponding glyphs.

#Property Value Examples

Value Example[1]
4 (default) VCL Chart Control: The Default Caption Offset in the Diagram Legend Pane
15 VCL Chart Control: An Increased Caption Offset in the Diagram Legend Pane

#Property Values and Scaling

The CaptionOffset property specifies the base offset of legend item captions that corresponds to 96 DPI. The Chart control’s draw routines multiply the CaptionOffset property value by the current scale factor and round the result to the nearest integer to calculate the actual legend item caption offset on the target screen.

#Default Value

The CaptionOffset property’s default value is the DefaultCaptionOffset typed constant.

Footnotes
  1. These examples demonstrate different CaptionOffset property values for the same XY diagram with three simple Line series.

See Also