Back to Devexpress

LineStyle.Thickness Property

wpf-devexpress-dot-xpf-dot-charts-dot-linestyle.md

latest3.6 KB
Original Source

LineStyle.Thickness Property

Specifies the line’s thickness.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public int Thickness { get; set; }
vb
Public Property Thickness As Integer

Property Value

TypeDescription
Int32

An integer value which specifies the line’s thickness, in pixels.

|

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

wpf-charts-custom-draw-crosshair-cursor/CS/CrosshairCustomDraw/MainWindow.xaml.cs#L22

csharp
e.CrosshairLineElement.LineStyle.DashStyle = DashStyles.DashDot;
e.CrosshairLineElement.LineStyle.Thickness = 3;

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

csharp
line.LineStyle.DashStyle = new DashStyle(new double[] { 3, 4 }, 0);
line.LineStyle.Thickness = 2;
if (customConstantLine.IsBound)

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

csharp
line.LineStyle = new LineStyle();
line.LineStyle.Thickness = 2;
line.LineStyle.DashStyle = DashStyles.Dash;

wpf-charts-custom-draw-crosshair-cursor/VB/CrosshairCustomDraw/MainWindow.xaml.vb#L26

vb
e.CrosshairLineElement.LineStyle.DashStyle = DashStyles.DashDot
e.CrosshairLineElement.LineStyle.Thickness = 3
' Specify the back color for crosshair argument label.

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

vb
line.LineStyle = New LineStyle()
line.LineStyle.Thickness = 2
line.LineStyle.DashStyle = DashStyles.Dash

See Also

LineStyle Class

LineStyle Members

DevExpress.Xpf.Charts Namespace