Skip to main content
All docs
V25.2
  • TdxChartAxisGridlines.Color Property

    Specifies color of major grid lines.

    Declaration

    property Color: TdxAlphaColor read; write; default TdxAlphaColors.Default;

    Property Value

    Type Default Description
    TdxAlphaColor Default

    The current color of major grid lines.

    Remarks

    Use Color and MinorColor properties to change major and minor grid line colors, respectively.

    Value Type

    The Color property accepts TdxAlphaColor values instead of TColor to support transparency.

    You can use the TdxAlphaColors record declared in the dxCoreGraphics unit to obtain compatible predefined colors or create custom TdxAlphaColor values. Alternatively, you can call the dxMakeAlphaColor function or other global methods declared in the same unit.

    Property Value Examples

    Value Example[1]
    TdxAlphaColors.Default (default) VCL Chart Control: The Default Color of Major Grid Lines
    TdxAlphaColors.Aquamarine VCL Chart Control: A Custom Color of Major Grid Lines

    Default Value

    The Color property’s default value is TdxAlphaColors.Default.

    The default Color property value indicates that the parent diagram’s Appearance.FillOptions settings determine the color of major grid lines.

    If the default color is defined everywhere down to the root level, the actual color of major grid lines is determined by the Chart control’s look & feel settings.

    Footnotes
    1. This example demonstrates different AxisY.Gridlines.Color property values on the same diagram.

      All other color-related properties in the Chart control are set to TdxAlphaColors.Default; the TheBezier skin is applied to the control with the active Gloom Gloom color scheme.

    See Also