Skip to main content

TdxChartLegendAppearance.CaptionOffset Property

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

Declaration

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