corelibraries-devexpress-dot-xtragauges-dot-core-dot-drawing-dot-baseshapeappearance.md
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
public BrushObject ContentBrush { get; set; }
Public Property ContentBrush As BrushObject
| Type | Description |
|---|---|
| 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
static void SetupRangeBar(LinearScaleRangeBar rangeBar) {
rangeBar.Appearance.ContentBrush = new SolidBrushObject(Color.Transparent);
}
web-forms-dashboard-gauge-ranges/CS/Default.aspx.cs#L63
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
Private Shared Sub SetupRangeBar(ByVal rangeBar As LinearScaleRangeBar)
rangeBar.Appearance.ContentBrush = New SolidBrushObject(Color.Transparent)
End Sub
See Also