Skip to main content

DiagramItem.Appearance Property

Provides access to the item’s appearance settings.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v26.1.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

[DXCategory("Appearance")]
public virtual DiagramAppearanceObject Appearance { get; }

Property Value

Type Description
DiagramAppearanceObject

The object that provides the item’s appearance settings.

Remarks

The Appearance property allows you to customize the following item settings:

Use the Options property to specify which appearance settings are applied to the item.

The following code snippet sets a dashed border for a diagram shape:

item.Appearance.BorderDashPattern = new DevExpress.Diagram.Core.DiagramDoubleCollection(new double[] { 10, 3 });
item.Appearance.BorderColor = Color.Red;
item.Appearance.BorderSize = 4;
See Also