Back to Devexpress

DxChartConstantLineLabel.Position Property

blazor-devexpress-dot-blazor-dot-dxchartconstantlinelabel-e7d0ea7e.md

latest1.4 KB
Original Source

DxChartConstantLineLabel.Position Property

Specifies whether to show a constant line label inside or outside the chart plot area.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public RelativePosition Position { get; set; }

Property Value

TypeDescription
RelativePosition

A RelativePosition enumeration value.

|

Available values:

NameDescription
Inside

An element is displayed inside the component.

| | Outside |

An element is displayed outside the component.

|

Remarks

Use the following code snippet to adjust a constant line label’s position:

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

See Also

DxChartConstantLineLabel Class

DxChartConstantLineLabel Members

DevExpress.Blazor Namespace