Skip to main content

DiagramItem.ForegroundId Property

Specifies the palette color to paint the item’s foreground. This is a dependency property.

Namespace: DevExpress.Xpf.Diagram

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

NuGet Package: DevExpress.Wpf.Diagram

Declaration

[Browsable(false)]
public DiagramThemeColorId? ForegroundId { get; set; }

Property Value

Type Description
Nullable<DevExpress.Diagram.Core.DiagramThemeColorId>

A DevExpress.Diagram.Core.DiagramThemeColorId enumeration value.

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ForegroundId 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.

See Also