Skip to main content

DiagramItem.StrokeId Property

This member supports the internal infrastructure, and is not intended to be used directly from your code.

Namespace: DevExpress.Xpf.Diagram

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

NuGet Package: DevExpress.Wpf.Diagram


public DiagramThemeColorId? StrokeId { get; set; }

Property Value



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

Use the Stroke property to paint the diagram item’s outline with a custom brush.

See Also