Back to Devexpress

ConstantLine.Value Property

wpf-devexpress-dot-xpf-dot-charts-dot-constantline-af242d14.md

latest3.2 KB
Original Source

ConstantLine.Value Property

Gets or sets the constant line‘s position along an axis.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public object Value { get; set; }
vb
Public Property Value As Object

Property Value

TypeDescription
Object

A Object value that specifies the constant line’s position.

|

Remarks

For more information, refer to Constant Lines.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Value property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

dashboard-constant-lines/CS/ConstantLineExtension.WPF/ConstantLinesConverter.cs#L49

csharp
if (measure != null)
        line.Value = data.GetValue(measure).Value;
}

wpf-dashboard-custom-properties/CS/Wpf-Dashboard-Custom-Properties/Modules/ChartItemModule/ChartOptions/ConstantLine.cs#L48

csharp
ConstantLine line = new ConstantLine();
line.Value = moduleData.Value;
Color constantLineColor = Color.FromArgb(255, 0, 128, 0);

wpf-dashboard-custom-properties/VB/Wpf-Dashboard-Custom-Properties/Modules/ChartItemModule/ChartOptions/ConstantLine.vb#L70

vb
Dim line As New ConstantLine()
line.Value = moduleData.Value
Dim constantLineColor As Color = Color.FromArgb(255, 0, 128, 0)

See Also

LineStyle

ConstantLine Class

ConstantLine Members

DevExpress.Xpf.Charts Namespace