Back to Devexpress

BaseShapeAppearance.ContentBrush Property

corelibraries-devexpress-dot-xtragauges-dot-core-dot-drawing-dot-baseshapeappearance.md

latest3.0 KB
Original Source

BaseShapeAppearance.ContentBrush Property

Gets or sets the brush used to paint the object’s interior region.

Namespace : DevExpress.XtraGauges.Core.Drawing

Assembly : DevExpress.XtraGauges.v25.2.Core.dll

NuGet Package : DevExpress.Gauges.Core

Declaration

csharp
public BrushObject ContentBrush { get; set; }
vb
Public Property ContentBrush As BrushObject

Property Value

TypeDescription
BrushObject

A BaseShapeAppearance descendant used to paint the object’s interior region.

|

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

reporting-wpf-advanced-gauge-customization/CS/MainWindow.xaml.cs#L74

csharp
static void SetupRangeBar(LinearScaleRangeBar rangeBar) {
    rangeBar.Appearance.ContentBrush = new SolidBrushObject(Color.Transparent);
}

web-forms-dashboard-gauge-ranges/CS/Default.aspx.cs#L63

csharp
range.EndValue = customRange.endValue;
range.AppearanceRange.ContentBrush = new SolidBrushObject(ColorTranslator.FromHtml(customRange.color));
scale.Ranges.Add(range);

reporting-wpf-advanced-gauge-customization/VB/MainWindow.xaml.vb#L61

vb
Private Shared Sub SetupRangeBar(ByVal rangeBar As LinearScaleRangeBar)
    rangeBar.Appearance.ContentBrush = New SolidBrushObject(Color.Transparent)
End Sub

See Also

BaseShapeAppearance Class

BaseShapeAppearance Members

DevExpress.XtraGauges.Core.Drawing Namespace