Skip to main content

DxChartConstantLineLabel.HorizontalAlignment Property

Specifies the horizontal alignment for the constant line’s label.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(HorizontalAlignment.Left)]
[Parameter]
public HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

Type Default Description
HorizontalAlignment Left

A HorizontalAlignment enumeration value.

Available values:

Name Description
Center

Center alignment.

Left

Left alignment.

Right

Right alignment.

Remarks

The HorizontalAlignment property is in effect for labels of constant lines that belong to a value axis.

Use the code below to adjust the positions for a value axis’s constant line label:

<DxChartValueAxis>
    <DxChartConstantLine Value="100">
        <DxChartConstantLineLabel HorizontalAlignment="HorizontalAlignment.Center"
                                  Position="RelativePosition.Inside" />
    </DxChartConstantLine>
</DxChartValueAxis>
See Also