Skip to main content
All docs
V25.2
  • TdxChartAxisTicks.Length Property

    Specifies length of major tick marks on an axis, in pixels.

    Declaration

    property Length: Single read; write;

    Property Value

    Type Description
    Single

    The current length (in pixels) of major tick marks at 96 DPI. The property value can be 1 or higher.

    Remarks

    Use the Length and MinorLength properties to adjust length of major and minor ticks on an axis, respectively

    Property Value Examples

    Value Example[1]
    5 (default) VCL Chart Control: Major Tick Marks with the Default Length on X and Y Axes
    10 VCL Chart Control: 10 Pixel-Long Major Tick Marks on X and Y Axes

    Property Setter Behavior

    The Length property setter changes the property value to 1 if you assign a value below 1 to the Length property.

    Property Values and Scaling

    The Length property specifies the base length (in pixels) of major tick marks that corresponds to 96 DPI. The Chart control’s draw routines multiply the Length property value by the current scale factor and round the result to the nearest integer to calculate actual length of major tick marks on the target screen.

    The Length property’s default value is 5.

    Footnotes
    1. This example demonstrates different AxisX.Ticks.Length and AxisY.Ticks.Length property values on the same diagram.

    See Also