Back to Devexpress

ConstantLine.Brush Property

wpf-devexpress-dot-xpf-dot-charts-dot-constantline-18499f05.md

latest3.0 KB
Original Source

ConstantLine.Brush Property

Gets or sets the color of the constant line.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

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

Property Value

TypeDescription
Brush

A Brush object which specifies the color of the constant line.

|

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

csharp
line.Visible = true;
line.Brush = new SolidColorBrush(Color.FromArgb(
    customConstantLine.Color.A,

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

csharp
Color constantLineColor = Color.FromArgb(255, 0, 128, 0);
line.Brush = new SolidColorBrush(constantLineColor);
line.LineStyle = new LineStyle();

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

vb
Dim constantLineColor As Color = Color.FromArgb(255, 0, 128, 0)
line.Brush = New SolidColorBrush(constantLineColor)
line.LineStyle = New LineStyle()

See Also

ConstantLine Class

ConstantLine Members

DevExpress.Xpf.Charts Namespace