Back to Devexpress

ConstantLine.LineStyle Property

wpf-devexpress-dot-xpf-dot-charts-dot-constantline-112ceb7b.md

latest3.1 KB
Original Source

ConstantLine.LineStyle Property

Specifies the constant line‘s style settings.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public LineStyle LineStyle { get; set; }
vb
Public Property LineStyle As LineStyle

Property Value

TypeDescription
LineStyle

A LineStyle object that contains line style settings.

|

Remarks

For more information, refer to Constant Lines.

The following code snippets (auto-collected from DevExpress Examples) contain references to the LineStyle 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#L41

csharp
line.Title.Content = customConstantLine.LabelText;
line.LineStyle = new LineStyle();
line.LineStyle.DashStyle = new DashStyle(new double[] { 3, 4 }, 0);

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

csharp
line.Brush = new SolidColorBrush(constantLineColor);
line.LineStyle = new LineStyle();
line.LineStyle.Thickness = 2;

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

vb
line.Brush = New SolidColorBrush(constantLineColor)
line.LineStyle = New LineStyle()
line.LineStyle.Thickness = 2

See Also

ConstantLine Class

ConstantLine Members

DevExpress.Xpf.Charts Namespace