DiagramItem.BackgroundId Property

Specifies the palette color to paint the item's background. This is a dependency property.

Namespace: DevExpress.Xpf.Diagram

Assembly: DevExpress.Xpf.Diagram.v20.1.dll

Declaration

[Browsable(false)]
public DiagramThemeColorId? BackgroundId { get; set; }
<Browsable(False)>
Public Property BackgroundId As DiagramThemeColorId?

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 BackgroundId property to get or set the theme color of the item's background. The StrokeId property specifies the color of the item's outline.

Use the Background property to paint the diagram item's background with a custom brush.

Implements

DevExpress.Diagram.Core.IDiagramItem.BackgroundId
See Also