DxChartConstantLineLabel.HorizontalAlignment Property

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

Type Description
HorizontalAlignment

The horizontal alignment.

Available values:

Name Description
Center

Aligns the items or text to the center.

Left

Aligns the items or text to the left.

Right

Aligns the items or text to the right.

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