wpf-devexpress-dot-xpf-dot-charts-dot-constantline-18499f05.md
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
public Brush Brush { get; set; }
Public Property Brush As Brush
| Type | Description |
|---|---|
| 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
line.Visible = true;
line.Brush = new SolidColorBrush(Color.FromArgb(
customConstantLine.Color.A,
Color constantLineColor = Color.FromArgb(255, 0, 128, 0);
line.Brush = new SolidColorBrush(constantLineColor);
line.LineStyle = new LineStyle();
Dim constantLineColor As Color = Color.FromArgb(255, 0, 128, 0)
line.Brush = New SolidColorBrush(constantLineColor)
line.LineStyle = New LineStyle()
See Also