DiagramItem.StrokeDashArray Property

Gets or sets a collection of System.Double values that indicate the pattern of dashes and gaps that is used to outline diagram items. This is a dependency property.

Namespace: DevExpress.Xpf.Diagram

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

Declaration

[Browsable(false)]
public DoubleCollection StrokeDashArray { get; set; }
<Browsable(False)>
Public Property StrokeDashArray As DoubleCollection

Property Value

Type Description
DoubleCollection

A collection of System.Double values that specify the pattern of dashes and gaps.

Remarks

The following code snippet illustrates how to create a shape with a dashed outline.

DiagramShape shape = new DiagramShape() { Height = 10, Width = 10, Shape = BasicShapes.Rectangle,
    StrokeDashArray = new DoubleCollection() { 3, 6 }, Stroke = Brushes.Red };
diagram.Items.Add(shape);

The image below shows the result.

See Also