Back to Devexpress

DiagramItem.Foreground Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramitem-fcafc0e1.md

latest2.1 KB
Original Source

DiagramItem.Foreground Property

Gets or sets the brush used to paint the diagram item foreground.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
[Browsable(false)]
public Brush Foreground { get; set; }
vb
<Browsable(False)>
Public Property Foreground As Brush

Property Value

TypeDescription
Brush

A Brush object, that specifies how the diagram item background is painted.

|

Remarks

Diagram themes are predefined sets of diagram item styles that can be applied to a diagram in a single click. Each theme consists of font settings and a set of styles that can be applied to individual diagram items. Styles are a combination of background, foreground and stroke colors used to paint an item.

The DevExpress.Diagram.Core.DiagramThemeColorId enumeration stores identifiers of theme colors. Use the ForegroundId property to get or set the theme color of the item’s foreground. The StrokeId property specifies the color of the item’s outline.

Use the Foreground property to paint the diagram item’s foreground with a custom brush.

See Also

Stroke

Background

DiagramItem Class

DiagramItem Members

DevExpress.Xpf.Diagram Namespace